mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
BUILD: ssl/ocsp: error: ‘%.*s’ directive argument is null
Some gcc version will emit an error because a '%.*s' argument have a NULL parameter. Initialize the string to "" instead.
This commit is contained in:
parent
93f2c73423
commit
6e11d34940
@ -1098,7 +1098,7 @@ void ocsp_update_response_end_cb(struct httpclient *hc)
|
|||||||
static void ssl_ocsp_send_log()
|
static void ssl_ocsp_send_log()
|
||||||
{
|
{
|
||||||
int status_str_len = 0;
|
int status_str_len = 0;
|
||||||
char *status_str = NULL;
|
char *status_str = "";
|
||||||
struct certificate_ocsp *ocsp = ssl_ocsp_task_ctx.cur_ocsp;
|
struct certificate_ocsp *ocsp = ssl_ocsp_task_ctx.cur_ocsp;
|
||||||
char *last_error = NULL;
|
char *last_error = NULL;
|
||||||
struct buffer *tmpbuf = get_trash_chunk();
|
struct buffer *tmpbuf = get_trash_chunk();
|
||||||
|
Loading…
Reference in New Issue
Block a user