From 45a01cf358952ed3cb128c28a507b0e9d5cbb6b3 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 15 Mar 2001 04:20:03 +0000 Subject: [PATCH] Fix chk references bug --- 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