Skip to content

Commit

Permalink
Merge pull request #411 from esabol/address-CodeQL-gripe-about-uncont…
Browse files Browse the repository at this point in the history
…rolled-format-string

Address CodeQL gripe about uncontrolled format string in handling of GEARMAND_PORT
  • Loading branch information
esabol authored Sep 24, 2024
2 parents 728f3a5 + 3f9a48f commit c24d899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgearman-server/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ gearmand_error_t gearmand_log_gai_error(const char *position, const char *functi
{
if (rc == EAI_SYSTEM)
{
return gearmand_log_perror(position, function, errno, message);
return gearmand_log_perror(position, function, errno, "%s", message);
}

gearmand_log_error(position, function, "%s getaddrinfo(%s)", message, gai_strerror(rc));
Expand Down

0 comments on commit c24d899

Please sign in to comment.