]> git.sur5r.net Git - openldap/commitdiff
Fix rev 1.312
authorHoward Chu <hyc@openldap.org>
Wed, 14 Feb 2007 00:08:26 +0000 (00:08 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 14 Feb 2007 00:08:26 +0000 (00:08 +0000)
servers/slapd/syncrepl.c

index 1b313b5bbdcea3e358547fbfd79fcaf03dc02700..b5fef03d485fdadedcfbeeb71f96259277f96731 100644 (file)
@@ -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;
 }