]> git.sur5r.net Git - openldap/commitdiff
don't dereference NULL pointer
authorRalf Haferkamp <ralf@openldap.org>
Thu, 4 Sep 2008 16:05:55 +0000 (16:05 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Thu, 4 Sep 2008 16:05:55 +0000 (16:05 +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;