From 78891c7e713a3dcb3afad1bfcdedd00075572ed6 Mon Sep 17 00:00:00 2001 From: Jerome Magnin Date: Mon, 2 Sep 2019 09:53:41 +0200 Subject: [PATCH] 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. --- src/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index 33f3b2277..912285034 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