]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: server: Only defined conn_complete_server if USE_OPENSSL is set.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 23 Nov 2018 13:24:10 +0000 (14:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2018 13:56:13 +0000 (14:56 +0100)
conn_complete_server() is only used when using ALPN/NPN, so only define it
if USE_OPENSSL is set.

src/backend.c

index 74de27ad39b5a4b2018e673283d330d63543ee34..862fe3d8d35d3d9f28dc75a42182ef096d081b51 100644 (file)
@@ -1035,6 +1035,7 @@ static void assign_tproxy_address(struct stream *s)
 #endif
 }
 
+#ifdef USE_OPENSSL
 /*
  * Pick the right mux once the connection is established, we should now have
  * an alpn if available, so we are now able to choose.
@@ -1069,6 +1070,7 @@ fail:
        conn_free(conn);
        return -1;
 }
+#endif
 
 
 /*