From bd4c6b84ea2a7de12125f9ffb525984898872e49 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 15 Mar 2001 03:11:52 +0000 Subject: [PATCH] Bug in chkResponseList loop (ITS#1047) from David @ Novell --- libraries/libldap/result.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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, -- 2.39.5