mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 11:59:45 -05:00
ITS#10429 Empty types are not valid LDIF, reject sooner
This commit is contained in:
parent
1136fabf06
commit
7b5980fd64
1 changed files with 8 additions and 0 deletions
|
|
@ -136,6 +136,14 @@ ldif_parse_line2(
|
|||
*s++ = '\0';
|
||||
type->bv_len = p - type->bv_val + 1;
|
||||
|
||||
if ( BER_BVISEMPTY( type ) ) {
|
||||
/* no type is present, error out */
|
||||
ber_pvt_log_printf( LDAP_DEBUG_PARSE, ldif_debug,
|
||||
_("ldif_parse_line: empty type is invalid\n") );
|
||||
if ( !freeval ) ber_memfree( line );
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
url = 0;
|
||||
b64 = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue