From: Kurt Zeilenga Date: Wed, 13 Feb 2002 09:20:07 +0000 (+0000) Subject: dnValidate needs to check for embedded NULs. X-Git-Tag: OPENLDAP_REL_ENG_2_1_BP~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c962f3dd4b439e8a84a71062284ca2ce2d32b52;p=openldap dnValidate needs to check for embedded NULs. --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 812a2a0b09..c88b5e07c3 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -116,6 +116,11 @@ dnValidate( return( LDAP_SUCCESS ); } + /* FIXME: str2dn should take a bv and handle this */ + if( strlen( val->bv_val ) != val->bv_len ) { + return LDAP_INVALID_SYNTAX; + } + rc = ldap_str2dn( in->bv_val, &dn, LDAP_DN_FORMAT_LDAP ); /*