From: Kurt Zeilenga Date: Thu, 15 Mar 2001 04:20:03 +0000 (+0000) Subject: Fix chk references bug X-Git-Tag: OPENLDAP_REL_ENG_2_0_8~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=45a01cf358952ed3cb128c28a507b0e9d5cbb6b3;p=openldap Fix chk references bug --- 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,