]> git.sur5r.net Git - openldap/commitdiff
Bug in chkResponseList loop (ITS#1047) from David @ Novell
authorKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 03:11:52 +0000 (03:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 03:11:52 +0000 (03:11 +0000)
libraries/libldap/result.c

index f9e70a2cf2778aaea0b864543277ba5539b045b2..c8804e04e9e445c896db4c09195b417839e3689f 100644 (file)
@@ -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,