mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
handle LDAPv2 when returning timelimit; silence warning
This commit is contained in:
parent
e56ab6a720
commit
78bd3bf6a3
@ -316,7 +316,12 @@ retry:;
|
||||
rc = ldap_parse_extended_result( ld, res,
|
||||
NULL, &data, 0 );
|
||||
if ( rc == LDAP_SUCCESS ) {
|
||||
rc = ldap_result2error( ld, res, 1 );
|
||||
int err;
|
||||
rc = ldap_parse_result( ld, res, &err,
|
||||
NULL, NULL, NULL, NULL, 1 );
|
||||
if ( rc == LDAP_SUCCESS ) {
|
||||
rc = err;
|
||||
}
|
||||
res = NULL;
|
||||
|
||||
/* FIXME: in case a referral
|
||||
@ -834,7 +839,8 @@ retry:;
|
||||
case 0:
|
||||
if ( timeout ) {
|
||||
(void)ldap_abandon_ext( lc->lc_ld, msgid, NULL, NULL );
|
||||
rs->sr_err = LDAP_ADMINLIMIT_EXCEEDED;
|
||||
rs->sr_err = op->o_protocol >= LDAP_VERSION3 ?
|
||||
LDAP_ADMINLIMIT_EXCEEDED : LDAP_OPERATIONS_ERROR;
|
||||
rs->sr_text = "Operation timed out";
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user