Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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 =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment