]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Don't accept "[SSL]" in config when no SSL support is built in
authorAlexander Barton <alex@barton.de>
Sun, 26 Feb 2012 14:52:12 +0000 (15:52 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 26 Feb 2012 14:52:12 +0000 (15:52 +0100)
src/ngircd/conf.c

index f18016b5c13f7a852ca61ce688a0048980370ef4..58ce9cab99fd14277842b2c85286d231ff99d370 100644 (file)
@@ -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 ));
                /* 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 ) {
                                continue;
 
                        if( strcasecmp( section, "[SERVER]" ) == 0 ) {