BUG/MINOR: httpclient/log: free of invalid ptr with httpclient_log_format
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 22 Dec 2022 14:37:01 +0000 (15:37 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 22 Dec 2022 14:39:31 +0000 (15:39 +0100)
commitbe6a87309662c3942352ac22af16376968b5c50b
tree14c318ee0a230c00c6fee42552a144af26fce7be
parentd793ca28b6d4210f05bd81caba55b371ef5248df
BUG/MINOR: httpclient/log: free of invalid ptr with httpclient_log_format

free_proxy() must check if the ptr is not httpclient_log_format before
trying to free p->conf.logformat_string.

No backport needed.
include/haproxy/log.h
src/http_client.c
src/log.c
src/proxy.c