From 40aac2dbd845e421a7c339ca846ff9bbabf1d43d Mon Sep 17 00:00:00 2001 From: Ed Sabol <22986767+esabol@users.noreply.github.com> Date: Sun, 21 Jul 2024 01:19:59 -0400 Subject: [PATCH] Fixed CodeQL gripe with incorrect return value check for sscanf() call. --- libgearman-server/plugins/queue/redis/queue.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgearman-server/plugins/queue/redis/queue.cc b/libgearman-server/plugins/queue/redis/queue.cc index a0ff3016..b6c69fdc 100644 --- a/libgearman-server/plugins/queue/redis/queue.cc +++ b/libgearman-server/plugins/queue/redis/queue.cc @@ -423,7 +423,7 @@ static gearmand_error_t _hiredis_replay(gearman_server_st *server, void *context unique); free(prefix); - if (ret == 0) + if (ret != 3) { continue; }