From: Jerome Magnin Date: Mon, 2 Sep 2019 07:53:41 +0000 (+0200) Subject: BUILD: connection: silence gcc warning with extra parentheses X-Git-Tag: v2.1-dev2~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78891c7e713a3dcb3afad1bfcdedd00075572ed6;p=thirdparty%2Fhaproxy.git BUILD: connection: silence gcc warning with extra parentheses Commit 8a4ffa0a ("MINOR: send-proxy-v2: sends authority TLV according to TLV received") is missing parentheses around a variable assignment used as condition in an if statement, and gcc isn't happy about it. --- diff --git a/src/connection.c b/src/connection.c index 33f3b2277e..9122850344 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1316,7 +1316,7 @@ int make_proxy_line_v2(char *buf, int buf_len, struct server *srv, struct connec } #ifdef USE_OPENSSL else { - if (value = ssl_sock_get_sni(remote)) + if ((value = ssl_sock_get_sni(remote))) value_len = strlen(value); } #endif