]> git.sur5r.net Git - openldap/commitdiff
fixed last commit
authorRalf Haferkamp <ralf@openldap.org>
Thu, 16 Feb 2006 13:22:37 +0000 (13:22 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Thu, 16 Feb 2006 13:22:37 +0000 (13:22 +0000)
servers/slapd/bconfig.c

index 59ab63a11d0e2a8c6df6f995b5ef707be597b791..b24e97a7711565be3988881a7fbf4a5513e3862f 100644 (file)
@@ -4436,13 +4436,14 @@ config_build_modules( ConfigArgs *c, CfEntryInfo *ceparent,
                c->value_dn.bv_len = snprintf(c->value_dn.bv_val, sizeof( c->log ), "cn=module" SLAP_X_ORDERED_FMT, i);
                if ( c->value_dn.bv_len >= sizeof( c->log ) ) {
                        /* FIXME: how can indicate error? */
-                       return;
+                       return -1;
                }
                c->private = mp;
                if ( ! config_build_entry( op, rs, ceparent, c, &c->value_dn, &CFOC_MODULE, NULL )) {
                        return -1;
                }
        }
+        return 0;
 }
 #endif