mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-07 12:49:42 +00:00
BUILD: fix build error without SSL (ssl_cert)
One last-minute optimization broke the build without SSL support. Move ssl_cert out of the #ifdef/#endif and it's OK.
This commit is contained in:
parent
d50265aa0e
commit
ff9f7698fc
@ -130,8 +130,8 @@ struct listener {
|
|||||||
char *interface; /* interface name or NULL */
|
char *interface; /* interface name or NULL */
|
||||||
int maxseg; /* for TCP, advertised MSS */
|
int maxseg; /* for TCP, advertised MSS */
|
||||||
|
|
||||||
#ifdef USE_OPENSSL
|
|
||||||
char *ssl_cert; /* ssl certificate */
|
char *ssl_cert; /* ssl certificate */
|
||||||
|
#ifdef USE_OPENSSL
|
||||||
struct {
|
struct {
|
||||||
SSL_CTX *ctx;
|
SSL_CTX *ctx;
|
||||||
char *ciphers; /* cipher suite to use if non-null */
|
char *ciphers; /* cipher suite to use if non-null */
|
||||||
|
@ -996,9 +996,7 @@ void deinit(void)
|
|||||||
l_next = l->next;
|
l_next = l->next;
|
||||||
unbind_listener(l);
|
unbind_listener(l);
|
||||||
delete_listener(l);
|
delete_listener(l);
|
||||||
#ifdef USE_OPENSSL
|
|
||||||
free(l->ssl_cert);
|
free(l->ssl_cert);
|
||||||
#endif
|
|
||||||
free(l->name);
|
free(l->name);
|
||||||
free(l->counters);
|
free(l->counters);
|
||||||
free(l);
|
free(l);
|
||||||
|
Loading…
Reference in New Issue
Block a user