From 00f4492a3c00afa9c6386dde107c2e7dc1345e48 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Apr 15 2014 13:56:58 +0000 Subject: Ticket #47772 empty modify returns LDAP_INVALID_DN_SYNTAX https://fedorahosted.org/389/ticket/47772 Reviewed by: tbordaz, mreynolds (Thanks!) Branch: 389-ds-base-1.3.2 Fix Description: tbordaz pointed out a couple of other places where the pblock modify_mods structure is being referenced directly, and needs to be checked for NULL. Platforms tested: RHEL6 x86_64 Flag Day: no Doc impact: no --- diff --git a/ldap/servers/plugins/replication/repl5_protocol_util.c b/ldap/servers/plugins/replication/repl5_protocol_util.c index 82af970..893839d 100644 --- a/ldap/servers/plugins/replication/repl5_protocol_util.c +++ b/ldap/servers/plugins/replication/repl5_protocol_util.c @@ -695,6 +695,10 @@ repl5_strip_fractional_mods(Repl_Agmt *agmt, LDAPMod ** mods) int strip = 1; int i, j, k; + if (mods == NULL) { + return retval; + } + if (a) { /* Iterate through the fractional attr list */ for ( i = 0; a[i] != NULL; i++ )