repo: ngircd
action: commit
revision: 
path_from: 
revision_from: c38751191f5811cbd45a0723e39c88785a854e9f:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit c38751191f5811cbd45a0723e39c88785a854e9f
Author: Alexander Barton 
Date:   Sun Feb 26 15:52:12 2012 +0100

    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 f18016b5c13f7a852ca61ce688a0048980370ef4..
index ..58ce9cab99fd14277842b2c85286d231ff99d370 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 ) {

-----END OF PAGE-----