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:
Willy Tarreau 2012-09-04 15:13:20 +02:00
parent d50265aa0e
commit ff9f7698fc
2 changed files with 1 additions and 3 deletions

View File

@ -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 */

View File

@ -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);