ldap_result was losing messages when multiple msgids were queued,

and results were being returned one-at-a-time. Ugh, this cost me two
days, loss of hair, sleep, etc.....!
This commit is contained in:
Howard Chu 1999-11-30 13:32:06 +00:00
parent a9fb92467e
commit 568e25a7a9

View File

@ -144,8 +144,11 @@ ldap_result(
lastlm->lm_next = (all == 0 && lm->lm_chain != NULL
? lm->lm_chain : lm->lm_next);
}
if ( all == 0 )
if ( all == 0 && lm->lm_chain != NULL )
{
lm->lm_chain->lm_next = lm->lm_next;
lm->lm_chain = NULL;
}
lm->lm_next = NULL;
*result = lm;