mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
ITS#7759 avoid assert in parse_passwdpolicy_control
This commit is contained in:
parent
f8efeb4278
commit
80e6316d37
@ -134,6 +134,11 @@ ldap_parse_passwordpolicy_control(
|
||||
assert( LDAP_VALID( ld ) );
|
||||
assert( ctrl != NULL );
|
||||
|
||||
if ( !ctrl->ldctl_value.bv_val ) {
|
||||
ld->ld_errno = LDAP_DECODING_ERROR;
|
||||
return(ld->ld_errno);
|
||||
}
|
||||
|
||||
/* Create a BerElement from the berval returned in the control. */
|
||||
ber = ber_init(&ctrl->ldctl_value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user