From: Kurt Zeilenga Date: Thu, 15 Mar 2001 03:11:52 +0000 (+0000) Subject: Bug in chkResponseList loop (ITS#1047) from David @ Novell X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1486 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd4c6b84ea2a7de12125f9ffb525984898872e49;p=openldap Bug in chkResponseList loop (ITS#1047) from David @ Novell --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index f9e70a2cf2..c8804e04e9 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -166,9 +166,9 @@ chkResponseList( } for ( tmp = lm; tmp != NULL; tmp = tmp->lm_chain ) { - if ( lm->lm_msgtype != LDAP_RES_SEARCH_ENTRY - && lm->lm_msgtype != LDAP_RES_SEARCH_REFERENCE - && lm->lm_msgtype != LDAP_RES_EXTENDED_PARTIAL ) + if ( tmp->lm_msgtype != LDAP_RES_SEARCH_ENTRY + && tmp->lm_msgtype != LDAP_RES_SEARCH_REFERENCE + && tmp->lm_msgtype != LDAP_RES_EXTENDED_PARTIAL ) { break; } @@ -211,6 +211,7 @@ chkResponseList( #endif return lm; } + static int wait4msg( LDAP *ld,