mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#7759 avoid assert in parse_passwdpolicy_control
This commit is contained in:
parent
f8efeb4278
commit
80e6316d37
1 changed files with 5 additions and 0 deletions
|
|
@ -134,6 +134,11 @@ ldap_parse_passwordpolicy_control(
|
||||||
assert( LDAP_VALID( ld ) );
|
assert( LDAP_VALID( ld ) );
|
||||||
assert( ctrl != NULL );
|
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. */
|
/* Create a BerElement from the berval returned in the control. */
|
||||||
ber = ber_init(&ctrl->ldctl_value);
|
ber = ber_init(&ctrl->ldctl_value);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue