mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 16:34:45 -05:00
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
This commit is contained in:
parent
1273a38eda
commit
2cac3ceb03
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue