Skip to content

Commit

Permalink
Fixed CodeQL gripe with incorrect return value check for sscanf() cal…
Browse files Browse the repository at this point in the history
…l. (#405)

Co-authored-by: Ed Sabol <[email protected]>
  • Loading branch information
esabol and esabol authored Aug 4, 2024
1 parent 23a7b86 commit 47f232c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgearman-server/plugins/queue/redis/queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 47f232c

Please sign in to comment.