Fix mutex deadlock obtaining msgid

This commit is contained in:
Howard Chu 2004-02-13 02:47:53 +00:00
parent 8a55795fbe
commit 75af144930

View file

@ -186,7 +186,12 @@ do_abandon(
ld->ld_errno = LDAP_NO_MEMORY;
} else {
LDAP_NEXT_MSGID(ld, i);
/*
* We already have the mutex in LDAP_R_COMPILE, so
* don't try to get it again.
* LDAP_NEXT_MSGID(ld, i);
*/
i = ++(ld)->ld_msgid;
#ifdef LDAP_CONNECTIONLESS
if ( LDAP_IS_UDP(ld) ) {
err = ber_write( ber, ld->ld_options.ldo_peer,