ldap/servers/plugins/replication/cl5_api.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 5a5ff2640d6e66c925550498211743a8f78a8477
Author: Ludwig Krispenz <lkrispen(a)redhat.com>
Date: Wed Mar 13 10:53:44 2013 +0100
modify operations without values need to be written to the changelog
reviewed by Mark, Thanks
diff --git a/ldap/servers/plugins/replication/cl5_api.c
b/ldap/servers/plugins/replication/cl5_api.c
index 934761b..af4e606 100644
--- a/ldap/servers/plugins/replication/cl5_api.c
+++ b/ldap/servers/plugins/replication/cl5_api.c
@@ -2538,11 +2538,15 @@ _cl5WriteMod (LDAPMod *mod, char **buff)
memcpy (pos, &count, sizeof (count));
pos += sizeof (PRInt32);
+ /* if the mod has no values, eg delete attr or replace attr without values
+ * do not reset buffer
+ */
+ rc = 0;
+
bv = slapi_mod_get_first_value (&smod);
while (bv)
{
encbv = NULL;
- rc = 0;
rc = clcrypt_encrypt_value(s_cl5Desc.clcrypt_handle,
bv, &encbv);
if (rc > 0) {
Show replies by date