mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
ITS#10060 Return tag of last message if all=LDAP_MSG_ALL
This commit is contained in:
parent
208d68cdd9
commit
3676f3ad69
1 changed files with 6 additions and 2 deletions
|
|
@ -295,7 +295,11 @@ wait4msg(
|
||||||
#endif /* LDAP_DEBUG */
|
#endif /* LDAP_DEBUG */
|
||||||
|
|
||||||
if ( ( *result = chkResponseList( ld, msgid, all ) ) != NULL ) {
|
if ( ( *result = chkResponseList( ld, msgid, all ) ) != NULL ) {
|
||||||
|
if ( all == LDAP_MSG_ALL && (*result)->lm_chain ) {
|
||||||
|
rc = (*result)->lm_chain_tail->lm_msgtype;
|
||||||
|
} else {
|
||||||
rc = (*result)->lm_msgtype;
|
rc = (*result)->lm_msgtype;
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
int lc_ready = 0;
|
int lc_ready = 0;
|
||||||
|
|
@ -1082,7 +1086,7 @@ nextresp2:
|
||||||
chain_head->lm_chain_tail = newmsg;
|
chain_head->lm_chain_tail = newmsg;
|
||||||
*result = chkResponseList( ld, msgid, all );
|
*result = chkResponseList( ld, msgid, all );
|
||||||
ld->ld_errno = LDAP_SUCCESS;
|
ld->ld_errno = LDAP_SUCCESS;
|
||||||
return( (*result)->lm_msgtype );
|
return( (*result)->lm_chain_tail->lm_msgtype );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* LDAP_CONNECTIONLESS */
|
#endif /* LDAP_CONNECTIONLESS */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue