]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: fix typo causing a build failure in the multicert patch
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Jun 2016 21:01:57 +0000 (23:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Jun 2016 21:02:46 +0000 (23:02 +0200)
I just noticed that SSL wouldn't build anymore since this afternoon's patch :

src/ssl_sock.c: In function 'ssl_sock_load_multi_cert':
src/ssl_sock.c:1982:26: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    for (i = 0; i < fcount, i++)
                          ^
src/ssl_sock.c:1982:31: error: expected ';' before ')' token
    for (i = 0; i < fcount, i++)
                               ^
Makefile:791: recipe for target 'src/ssl_sock.o' failed
make: *** [src/ssl_sock.o] Error 1

src/ssl_sock.c

index e0a1616657f8acecd5184ce16fb766a898d16126..6635d5c848692606569aa469c6412bcd447e2ff7 100644 (file)
@@ -1979,7 +1979,7 @@ static int ssl_sock_load_multi_cert(const char *path, struct bind_conf *bind_con
                        continue;
 
                if (fcount) {
-                       for (i = 0; i < fcount, i++)
+                       for (i = 0; i < fcount; i++)
                                ssl_sock_populate_sni_keytypes_hplr(sni_filter[i], &sni_keytypes_map, n);
                } else {
                        /* A lot of the following code is OpenSSL boilerplate for processing CN's and SAN's,