Skip to content
Snippets Groups Projects
Commit 731d484f authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7759 avoid assert in parse_passwdpolicy_control

parent 503561bd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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