]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Sun, 20 Mar 2005 09:24:35 +0000 (09:24 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 20 Mar 2005 09:24:35 +0000 (09:24 +0000)
servers/slapd/bconfig.c

index 7d83d93d162e5fabcd3fcd15812e6cc3a827b3dd..fc791ec4d3164ce828e5405b5beb95517708343a 100644 (file)
@@ -1063,10 +1063,13 @@ config_generic(ConfigArgs *c) {
 
 static int
 config_fname(ConfigArgs *c) {
-       if(c->op == SLAP_CONFIG_EMIT && c->line) {
-               ConfigFile *cf = (ConfigFile *)c->line;
-               value_add_one( &c->rvalue_vals, &cf->c_file );
-               return 0;
+       if(c->op == SLAP_CONFIG_EMIT) {
+               if (c->line) {
+                       ConfigFile *cf = (ConfigFile *)c->line;
+                       value_add_one( &c->rvalue_vals, &cf->c_file );
+                       return 0;
+               }
+               return 1;
        }
        return(0);
 }