Commit a73826b8 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

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

parent c114cb8e
...@@ -310,6 +310,14 @@ str2entry2( char *s, int checkvals ) ...@@ -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 =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment