mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: ssl: Stop passing dynamic strings as format arguments
gcc complains rightfully:
src/ssl_sock.c: In function ‘ssl_load_global_issuers_from_path’:
src/ssl_sock.c:9860:4: warning: format not a string literal and no format arguments [-Wformat-security]
ha_warning(warn);
^
Introduced in 70df7bf19c.
This commit is contained in:
parent
6072beb214
commit
e8aa5f24d6
1 changed files with 1 additions and 1 deletions
|
|
@ -9857,7 +9857,7 @@ static int ssl_load_global_issuers_from_path(char **args, int section_type, stru
|
|||
goto next;
|
||||
ssl_load_global_issuer_from_BIO(in, fp, &warn);
|
||||
if (warn) {
|
||||
ha_warning(warn);
|
||||
ha_warning("%s", warn);
|
||||
free(warn);
|
||||
warn = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue