diff --git a/source4/torture/rpc/wkssvc.c b/source4/torture/rpc/wkssvc.c index e2c32f49260..4c7b350e252 100644 --- a/source4/torture/rpc/wkssvc.c +++ b/source4/torture/rpc/wkssvc.c @@ -476,7 +476,7 @@ static bool test_NetrUseGetInfo(struct torture_context *tctx, if (!test_NetrUseGetInfo_level(tctx, p, use_name, levels[i], - WERR_NOT_CONNECTED)) + WERR_NERR_USENOTFOUND)) { if (levels[i] != 0) { return false;