From: Alexander Barton Date: Sun, 26 Feb 2012 14:52:12 +0000 (+0100) Subject: Don't accept "[SSL]" in config when no SSL support is built in X-Git-Tag: rel-19~3 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=c38751191f5811cbd45a0723e39c88785a854e9f Don't accept "[SSL]" in config when no SSL support is built in --- diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index f18016b5..58ce9cab 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -854,10 +854,13 @@ Read_Config( bool ngircd_starting ) /* Is this the beginning of a new section? */ if(( str[0] == '[' ) && ( str[strlen( str ) - 1] == ']' )) { strlcpy( section, str, sizeof( section )); - if (strcasecmp(section, "[GLOBAL]") == 0 || - strcasecmp(section, "[LIMITS]") == 0 || - strcasecmp(section, "[OPTIONS]") == 0 || - strcasecmp(section, "[SSL]") == 0) + if (strcasecmp(section, "[GLOBAL]") == 0 + || strcasecmp(section, "[LIMITS]") == 0 + || strcasecmp(section, "[OPTIONS]") == 0 +#ifdef SSL_SUPPORT + || strcasecmp(section, "[SSL]") == 0 +#endif + ) continue; if( strcasecmp( section, "[SERVER]" ) == 0 ) {