mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
don't allow NULL values (because of parsing errors; ITS#5090)
This commit is contained in:
parent
c114cb8eb7
commit
a73826b834
1 changed files with 8 additions and 0 deletions
|
|
@ -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 =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue