]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/entry.c
ITS#4310 seems to affect also back-ldbm
[openldap] / servers / slapd / entry.c
index 54f7eaf296342e4ef4e7aba32484d6e4ef145139..c389f6b0a21f3151679e738a66694ebc2e078585 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -282,7 +282,7 @@ str2entry2( char *s, int checkvals )
                                 * validate value per syntax
                                 */
 #ifdef SLAP_ORDERED_PRETTYNORM
-                               rc = ordered_value_validate( ad, &vals[i] );
+                               rc = ordered_value_validate( ad, &vals[i], LDAP_MOD_ADD );
 #else /* ! SLAP_ORDERED_PRETTYNORM */
                                rc = validate( ad->ad_type->sat_syntax, &vals[i] );
 #endif /* ! SLAP_ORDERED_PRETTYNORM */