]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Sat, 11 Jun 2005 00:53:28 +0000 (00:53 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 11 Jun 2005 00:53:28 +0000 (00:53 +0000)
servers/slapd/bconfig.c

index 8c4d873cfbe4d3792c9fa72a520bd819554886b1..e3758101059ededfad7526062baec064cc5081f9 100644 (file)
@@ -1161,7 +1161,7 @@ config_generic(ConfigArgs *c) {
                        /* If we're just adding a module on an existing modpath,
                         * make sure we've selected the current path.
                         */
-                       if ( c->op == LDAP_MOD_ADD && modcur != c->private ) {
+                       if ( c->op == LDAP_MOD_ADD && c->private && modcur != c->private ) {
                                modcur = c->private;
                                /* This should never fail */
                                if ( module_path( modcur->mp_path.bv_val )) {