From: Hallvard Furuseth Date: Sun, 12 Jun 2016 06:35:25 +0000 (+0200) Subject: Catch slapmodify entry setup errors X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a961ed6ed1b4409aa7e9856a548290fc630ffba;p=openldap Catch slapmodify entry setup errors --- diff --git a/servers/slapd/slapmodify.c b/servers/slapd/slapmodify.c index 0954bb21b1..77ab751590 100644 --- a/servers/slapd/slapmodify.c +++ b/servers/slapd/slapmodify.c @@ -285,7 +285,9 @@ slapmodify( int argc, char **argv ) rc = (id == NOID); if ( rc == LDAP_SUCCESS && lr.lr_op != LDAP_REQ_DELETE ) { e_orig = be->be_entry_get( be, id ); - e = entry_dup( e_orig ); + if ( e_orig ) + e = entry_dup( e_orig ); + rc = (e == NULL); } break; }