From: Matthew Newton Date: Sun, 8 Apr 2012 20:26:28 +0000 (+0100) Subject: don't segfault when invalid eap types in config X-Git-Tag: release_3_0_0_beta0~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff9526dbac3bc1900d9372f5a9c8195fcd08ec6c;p=thirdparty%2Ffreeradius-server.git don't segfault when invalid eap types in config --- diff --git a/src/main/modules.c b/src/main/modules.c index 20a09dcffc9..dd8c2ed6e81 100644 --- a/src/main/modules.c +++ b/src/main/modules.c @@ -954,7 +954,7 @@ static int load_component_section(CONF_SECTION *cs, /* * It's OK for the module to not exist. */ - if (!this && (modname[0] == '-')) { + if (!this && modname && (modname[0] == '-')) { DEBUG("WARNING: Not loading module \"%s\" as it is not enabled", modname + 1); continue; }