mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02: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 70df7bf19cebd5593c0abb01923e6c9f72961da6.
This commit is contained in:
parent
6072beb214
commit
e8aa5f24d6
@ -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…
x
Reference in New Issue
Block a user