From: Howard Chu Date: Wed, 14 Feb 2007 00:08:26 +0000 (+0000) Subject: Fix rev 1.312 X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7dc2199bfd7687f545a6d3b212a77497e22b1c25;p=openldap Fix rev 1.312 --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 1b313b5bbd..b5fef03d48 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1629,7 +1629,8 @@ syncrepl_message_to_entry( if ( syncstate == LDAP_SYNC_PRESENT || syncstate == LDAP_SYNC_DELETE ) { /* NOTE: this could be done even before decoding the DN, * although encoding errors wouldn't be detected */ - return LDAP_SUCCESS; + rc = LDAP_SUCCESS; + goto done; } if ( entry == NULL ) { @@ -1733,7 +1734,8 @@ done: e = NULL; } } - *entry = e; + if ( entry ) + *entry = e; return rc; }