]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/CLEANUP: ssl: avoid a warning due to mixed code and declaration
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Feb 2015 15:36:16 +0000 (16:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Feb 2015 22:12:30 +0000 (23:12 +0100)
Actually it was caused by some dummy code meant to shut gcc up for
an unused argument!

src/ssl_sock.c

index bcf70c9fb4dce06a8d1476a051d7e6bff8456065..c9ace2d79383f770799ad1089eb7ec067bada39a 100644 (file)
@@ -599,8 +599,8 @@ out:
 void ssl_sock_infocbk(const SSL *ssl, int where, int ret)
 {
        struct connection *conn = (struct connection *)SSL_get_app_data(ssl);
-       (void)ret; /* shut gcc stupid warning */
        BIO *write_bio;
+       (void)ret; /* shut gcc stupid warning */
 
        if (where & SSL_CB_HANDSHAKE_START) {
                /* Disable renegotiation (CVE-2009-3555) */