]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Remove infinite client/server loop in srvsvc_NetNameValidate test
authorAndrew Bartlett <abartlet@samba.org>
Thu, 23 May 2019 00:20:35 +0000 (12:20 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 24 May 2019 03:19:17 +0000 (03:19 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/torture/rpc/srvsvc.c

index f732a99032fcea7093cc09c5dba248b2b2869c01..c777f3612e4fccbfff39e6aaf49cb341ed201362 100644 (file)
@@ -1109,6 +1109,13 @@ again:
                        if (W_ERROR_IS_OK(r.out.result)) {
                                min = n;
                                n += (max - min + 1)/2;
+                               if (n == min) {
+                                       /*
+                                        * We did not move, so
+                                        * do not loop forever
+                                        */
+                                       break;
+                               }
                                continue;
                                
                        } else {