about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-02-26 15:52:12 +0100
committerAlexander Barton <alex@barton.de>2012-02-26 15:52:12 +0100
commitc38751191f5811cbd45a0723e39c88785a854e9f (patch)
tree2dfe38e1945e0a62a873ebfcbe202dd9f2a11024
parent5cbdcf4f0d44709798469f09a72d4b4bd56d6e93 (diff)
downloadngircd-c38751191f5811cbd45a0723e39c88785a854e9f.tar.gz
ngircd-c38751191f5811cbd45a0723e39c88785a854e9f.zip
Don't accept "[SSL]" in config when no SSL support is built in
-rw-r--r--src/ngircd/conf.c11
1 files changed, 7 insertions, 4 deletions
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 ) {