summaryrefslogtreecommitdiffstats
path: root/ldap/servers
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers')
-rw-r--r--ldap/servers/plugins/replication/repl5_protocol.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ldap/servers/plugins/replication/repl5_protocol.c b/ldap/servers/plugins/replication/repl5_protocol.c
index 0f4d1fa7..1ff901b1 100644
--- a/ldap/servers/plugins/replication/repl5_protocol.c
+++ b/ldap/servers/plugins/replication/repl5_protocol.c
@@ -136,12 +136,13 @@ prot_new(Repl_Agmt *agmt, int protocol_state)
/* XXXggood register callback handlers for entries updated, and
schedule window enter/leave. */
- slapi_sdn_free(&replarea_sdn);
- return rp;
+ goto done;
loser:
prot_delete(&rp);
- return NULL;
+done:
+ slapi_sdn_free(&replarea_sdn);
+ return rp;
}