src/server/config/initconf.c

changeset 21
627b09ee74e4
parent 17
d2a97bbeb57d
child 25
5dee29c7c530
--- a/src/server/config/initconf.c	Sat Jan 28 16:01:07 2012 +0100
+++ b/src/server/config/initconf.c	Mon Feb 13 13:49:49 2012 +0100
@@ -67,6 +67,10 @@
 
     // parse directive
     ConfigDirective *d = cfg_parse_directive(line, conf->parser.mp);
+    if(d == NULL) {
+        fprintf(stderr, "Error: initconf_parse: directive is null\n");
+        return 0;
+    }
     d->begin = begin;
     d->end = end;
     if(d->type_num == 6) {

mercurial