summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication/windows_private.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers/plugins/replication/windows_private.c')
-rw-r--r--ldap/servers/plugins/replication/windows_private.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/windows_private.c b/ldap/servers/plugins/replication/windows_private.c
index f2bf031e..9ad7681a 100644
--- a/ldap/servers/plugins/replication/windows_private.c
+++ b/ldap/servers/plugins/replication/windows_private.c
@@ -612,6 +612,12 @@ void windows_private_update_dirsync_control(const Repl_Agmt *ra,LDAPControl **co
#endif
goto choke;
}
+ else if (!controls[i-1]->ldctl_value.bv_val) {
+#ifdef FOR_DEBUGGING
+ return_value = LDAP_CONTROL_NOT_FOUND;
+#endif
+ goto choke;
+ }
else
{
dirsync = slapi_dup_control( controls[i-1]);