]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: httpclient: fix build without SSL
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Mar 2022 15:39:23 +0000 (16:39 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Mar 2022 15:39:23 +0000 (16:39 +0100)
commit715c101a196187a4f4c9a60093e30b1a1a434483
treec155bc792a0a83f0032819ccaae149ea1dfb9f5c
parent71e31583957895c6601fbad352292497176b7fa3
BUILD: httpclient: fix build without SSL

src/http_client.c: In function ‘httpclient_cfg_postparser’:
src/http_client.c:1065:8: error: unused variable ‘errmsg’ [-Werror=unused-variable]
 1065 |  char *errmsg = NULL;
      |        ^~~~~~
src/http_client.c:1064:6: error: unused variable ‘err_code’ [-Werror=unused-variable]
 1064 |  int err_code = 0;
      |      ^~~~~~~~

Fix the build of the httpclient without SSL, the problem was introduced
with previous patch 71e3158 ("BUG/MINOR: httpclient: send the SNI using
the host header")

Must be backported in 2.5 as well.
src/http_client.c