]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: connection: silence gcc warning with extra parentheses
authorJerome Magnin <jmagnin@haproxy.com>
Mon, 2 Sep 2019 07:53:41 +0000 (09:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 2 Sep 2019 14:59:32 +0000 (16:59 +0200)
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

index 33f3b2277ed53f4e3149f3f874439f73eaf81135..91228503444e9d1b13d3ff73b2d0237a47d7848d 100644 (file)
@@ -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