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.
This commit is contained in:
Jerome Magnin 2019-09-02 09:53:41 +02:00 committed by Willy Tarreau
parent 9c3a0ceeac
commit 78891c7e71

View File

@ -1316,7 +1316,7 @@ int make_proxy_line_v2(char *buf, int buf_len, struct server *srv, struct connec
} }
#ifdef USE_OPENSSL #ifdef USE_OPENSSL
else { else {
if (value = ssl_sock_get_sni(remote)) if ((value = ssl_sock_get_sni(remote)))
value_len = strlen(value); value_len = strlen(value);
} }
#endif #endif