mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-26 08:42:53 -05:00
reset ld->ld_errno to avoid returning error codes of previously API calls (ITS#5762)
This commit is contained in:
parent
09cb340f67
commit
e8c1147b77
4 changed files with 4 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ ldap_create_page_control_value(
|
|||
|
||||
value->bv_val = NULL;
|
||||
value->bv_len = 0;
|
||||
ld->ld_errno = LDAP_SUCCESS;
|
||||
|
||||
if ( cookie == NULL ) {
|
||||
cookie = &null_cookie;
|
||||
|
|
|
|||
|
|
@ -304,6 +304,7 @@ ldap_create_sort_control_value(
|
|||
|
||||
value->bv_val = NULL;
|
||||
value->bv_len = 0;
|
||||
ld->ld_errno = LDAP_SUCCESS;
|
||||
|
||||
ber = ldap_alloc_ber_with_options( ld );
|
||||
if ( ber == NULL) {
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ param_error:;
|
|||
}
|
||||
|
||||
assert( LDAP_VALID( ld ) );
|
||||
ld->ld_errno = LDAP_SUCCESS;
|
||||
|
||||
/* check sizes according to I.D. */
|
||||
if ( sessionSourceIp == NULL ) {
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ ldap_create_vlv_control_value(
|
|||
|
||||
value->bv_val = NULL;
|
||||
value->bv_len = 0;
|
||||
ld->ld_errno = LDAP_SUCCESS;
|
||||
|
||||
ber = ldap_alloc_ber_with_options( ld );
|
||||
if ( ber == NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue