]> git.sur5r.net Git - openldap/commitdiff
don't dereference NULL pointer
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 5 Sep 2008 21:06:19 +0000 (21:06 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 5 Sep 2008 21:06:19 +0000 (21:06 +0000)
servers/slapd/bconfig.c

index fe8347478e36cdcc80de73ca342437c3f6adb5e9..63d2b0ec90a15a4763a25db404a9cafbe7e8a93b 100644 (file)
@@ -5245,7 +5245,7 @@ config_back_delete( Operation *op, SlapReply *rs )
                if ( last )
                        rs->sr_matched = last->ce_entry->e_name.bv_val;
                rs->sr_err = LDAP_NO_SUCH_OBJECT;
-       } if ( ce->ce_kids ) {
+       } else if ( ce->ce_kids ) {
                rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
        } else if ( ce->ce_type == Cft_Overlay ){
                char *iptr;