ldap/servers/slapd/attr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1118201e678deebb5a22027d7604cb1950905fb4
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Wed Jul 31 17:02:41 2013 -0600
Revert "fix coverity 11915 - dead code - introduced with fix for ticket
346"
This reverts commit 67694e7a95f72067bba84e0f6af4ff1c4af89a9e.
diff --git a/ldap/servers/slapd/attr.c b/ldap/servers/slapd/attr.c
index 3a0be9d..c939d9c 100644
--- a/ldap/servers/slapd/attr.c
+++ b/ldap/servers/slapd/attr.c
@@ -810,6 +810,7 @@ attr_add_valuearray(Slapi_Attr *a, Slapi_Value **vals, const char
*dn)
int i = 0;
int numofvals = 0;
int duplicate_index = -1;
+ int was_present_null = 0;
int rc = LDAP_SUCCESS;
if (valuearray_isempty(vals)) {
@@ -912,7 +913,7 @@ attr_add_valuearray(Slapi_Attr *a, Slapi_Value **vals, const char
*dn)
duplicate_string,
a->a_type,
dn ? dn : "<null>",
- "value exists");
+ (was_present_null ? "duplicate new value" : "value
exists"));
}
return( rc );
}
Show replies by date