diff --git a/include/types/protocols.h b/include/types/protocols.h index 4e40a6726..b075ef6a8 100644 --- a/include/types/protocols.h +++ b/include/types/protocols.h @@ -130,8 +130,8 @@ struct listener { char *interface; /* interface name or NULL */ int maxseg; /* for TCP, advertised MSS */ -#ifdef USE_OPENSSL char *ssl_cert; /* ssl certificate */ +#ifdef USE_OPENSSL struct { SSL_CTX *ctx; char *ciphers; /* cipher suite to use if non-null */ diff --git a/src/haproxy.c b/src/haproxy.c index adf2614f3..4e7508030 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -996,9 +996,7 @@ void deinit(void) l_next = l->next; unbind_listener(l); delete_listener(l); -#ifdef USE_OPENSSL free(l->ssl_cert); -#endif free(l->name); free(l->counters); free(l);