don't allow NULL values (because of parsing errors; ITS#5090)

This commit is contained in:
Pierangelo Masarati 2007-08-13 19:33:01 +00:00
parent c114cb8eb7
commit a73826b834

View file

@ -310,6 +310,14 @@ str2entry2( char *s, int checkvals )
if ( i == lines ) break; 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 ) { if( slapMode & SLAP_TOOL_MODE ) {
struct berval pval; struct berval pval;
slap_syntax_validate_func *validate = slap_syntax_validate_func *validate =