Don't accept "[SSL]" in config when no SSL support is built in
This commit is contained in:
parent
5cbdcf4f0d
commit
c38751191f
|
@ -854,10 +854,13 @@ Read_Config( bool ngircd_starting )
|
||||||
/* Is this the beginning of a new section? */
|
/* Is this the beginning of a new section? */
|
||||||
if(( str[0] == '[' ) && ( str[strlen( str ) - 1] == ']' )) {
|
if(( str[0] == '[' ) && ( str[strlen( str ) - 1] == ']' )) {
|
||||||
strlcpy( section, str, sizeof( section ));
|
strlcpy( section, str, sizeof( section ));
|
||||||
if (strcasecmp(section, "[GLOBAL]") == 0 ||
|
if (strcasecmp(section, "[GLOBAL]") == 0
|
||||||
strcasecmp(section, "[LIMITS]") == 0 ||
|
|| strcasecmp(section, "[LIMITS]") == 0
|
||||||
strcasecmp(section, "[OPTIONS]") == 0 ||
|
|| strcasecmp(section, "[OPTIONS]") == 0
|
||||||
strcasecmp(section, "[SSL]") == 0)
|
#ifdef SSL_SUPPORT
|
||||||
|
|| strcasecmp(section, "[SSL]") == 0
|
||||||
|
#endif
|
||||||
|
)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( strcasecmp( section, "[SERVER]" ) == 0 ) {
|
if( strcasecmp( section, "[SERVER]" ) == 0 ) {
|
||||||
|
|
Loading…
Reference in New Issue