s3:libads: re-initialize num_requests to 0 for cldap_ping_list retries
authorStefan Metzmacher <metze@samba.org>
Tue, 4 Jul 2023 16:07:12 +0000 (18:07 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 5 Jul 2023 11:17:43 +0000 (11:17 +0000)
Commit 8132edf119757ee91070facffef016c93de9c2a6 introduced a retry loop
arround cldap_multi_netlogon(), but it forgot to reset num_requests to 0
for the retries.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15416

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Jul  5 11:17:43 UTC 2023 on atb-devel-224

source3/libads/ldap.c

index a01b1193013821a51579f3c3c43bb6a2d0f4b8a9..3ba32d0cf448f500b5d7e5e6f2d224c1605ba988 100644 (file)
@@ -446,6 +446,7 @@ again:
         * The retry loop is bound by the timeout
         */
        retry = false;
+       num_requests = 0;
 
        for (i = 0; i < count; i++) {
                char server[INET6_ADDRSTRLEN];