From: Ondřej Kuzník Date: Wed, 21 Jun 2023 09:36:37 +0000 (+0100) Subject: ITS#10060 Try harder to find a finished operation with msgid=LDAP_RES_ANY X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b7b2172d9274b39442afe4f8e886115c0d33c1a;p=thirdparty%2Fopenldap.git ITS#10060 Try harder to find a finished operation with msgid=LDAP_RES_ANY --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index f5a5868860..b390f55d57 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -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; }