]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10060 Try harder to find a finished operation with msgid=LDAP_RES_ANY
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 21 Jun 2023 09:36:37 +0000 (10:36 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 19 Jul 2023 14:53:47 +0000 (14:53 +0000)
libraries/libldap/result.c

index f5a58688607b314daf3dc0aaa73b25c0d4cc1d80..b390f55d57689a33a5ac8c5f2965c47846c1ddfc 100644 (file)
@@ -196,11 +196,13 @@ chkResponseList(
                                tmp = NULL;
                        }
 
-                       if ( tmp == NULL ) {
+                       if ( tmp == NULL && msgid != LDAP_RES_ANY ) {
                                lm = NULL;
                        }
 
-                       break;
+                       if ( tmp || msgid != LDAP_RES_ANY ) {
+                               break;
+                       }
                }
                lastlm = &lm->lm_next;
        }