]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/stctrl.c
reset ld->ld_errno to avoid returning error codes of previously API calls (ITS#5762)
[openldap] / libraries / libldap / stctrl.c
index 8aba9466741fdb1c8465adf6c974a48dadabcb99..d02d2d210f1ca295dab3e7ca2a0b9a16a574e1ee 100644 (file)
@@ -60,6 +60,7 @@ param_error:;
        }
 
        assert( LDAP_VALID( ld ) );
+       ld->ld_errno = LDAP_SUCCESS;
 
        /* check sizes according to I.D. */
        if ( sessionSourceIp == NULL ) {