From 773e476203fcd15a20032d49e3377417ccd237fe Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 23 May 2019 12:20:35 +1200 Subject: [PATCH] selftest: Remove infinite client/server loop in srvsvc_NetNameValidate test Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- source4/torture/rpc/srvsvc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c index f732a99032f..c777f3612e4 100644 --- a/source4/torture/rpc/srvsvc.c +++ b/source4/torture/rpc/srvsvc.c @@ -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 { -- 2.47.3