diff --git a/src/backend.c b/src/backend.c index 2cf8c751a..1c0cf660b 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1386,13 +1386,13 @@ int connect_server(struct stream *s) else return SF_ERR_INTERNAL; /* how did we get there ? */ -#if defined(USE_OPENSSL) && defined(TLSEXT_TYPE_application_layer_protocol_negotiation) srv_cs = si_alloc_cs(&s->si[1], srv_conn); if (!srv_cs) { conn_free(srv_conn); return SF_ERR_RESOURCE; } srv_conn->ctx = srv_cs; +#if defined(USE_OPENSSL) && defined(TLSEXT_TYPE_application_layer_protocol_negotiation) if (!srv || ((!(srv->ssl_ctx.alpn_str) && !(srv->ssl_ctx.npn_str)) || srv->mux_proto || s->be->mode != PR_MODE_HTTP))