From: Pierangelo Masarati Date: Mon, 13 Aug 2007 19:33:01 +0000 (+0000) Subject: don't allow NULL values (because of parsing errors; ITS#5090) X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~223 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a73826b8345181bbca02259f7e65e4f20c0af308;p=openldap don't allow NULL values (because of parsing errors; ITS#5090) --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index 213b9f129c..660bcb676b 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -310,6 +310,14 @@ str2entry2( char *s, int checkvals ) if ( i == lines ) break; } + if ( BER_BVISNULL( &vals[i] ) ) { + Debug( LDAP_DEBUG_ANY, + "str2entry: attributeType %s #%d: " + "no value\n", + ad->ad_cname.bv_val, attr_cnt, 0 ); + goto fail; + } + if( slapMode & SLAP_TOOL_MODE ) { struct berval pval; slap_syntax_validate_func *validate =