Commit 8e6d1b8b authored by Côme Chilliet's avatar Côme Chilliet Committed by Quanah Gibson-Mount
Browse files

ITS#8674 Return correct result from ldap_create_assertion_control_value

ldap_create_assertion_control_value was returning ld->ld_errno
 upon success without reseting it to LDAP_SUCCESS first
parent 653922c5
......@@ -31,6 +31,8 @@ ldap_create_assertion_control_value(
BerElement *ber = NULL;
int err;
ld->ld_errno = LDAP_SUCCESS;
if ( assertion == NULL || assertion[ 0 ] == '\0' ) {
ld->ld_errno = LDAP_PARAM_ERROR;
return ld->ld_errno;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment