]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/modify.c
Remove lint
[openldap] / servers / slapd / modify.c
index 7d6626c0cb64cba2a18e662868ea2480c470a454..a00e54dc674491d6e5d75ef7ac8027f64274458a 100644 (file)
@@ -458,7 +458,7 @@ int slap_modlist2mods(
                                if( rc != 0 ) {
                                        slap_mods_free( mod );
                                        snprintf( textbuf, textlen,
-                                               "%s: value #%ld contains invalid data",
+                                               "%s: value #%ld invalid per syntax",
                                                ml->ml_type, (long) nvals );
                                        *text = textbuf;
                                        return LDAP_INVALID_SYNTAX;
@@ -477,7 +477,7 @@ int slap_modlist2mods(
                                        "%s: multiple value provided",
                                        ml->ml_type );
                                *text = textbuf;
-                               return LDAP_INVALID_SYNTAX;
+                               return LDAP_CONSTRAINT_VIOLATION;
                        }
                }