]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't segfault when invalid eap types in config
authorMatthew Newton <mcn4@leicester.ac.uk>
Sun, 8 Apr 2012 20:26:28 +0000 (21:26 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 11 Apr 2012 06:51:30 +0000 (08:51 +0200)
src/main/modules.c

index 20a09dcffc908166ce9fcef09d37b60c48056063..dd8c2ed6e81186ed646f9d37a60004fddde4dfaa 100644 (file)
@@ -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;
                }