1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4-smbtorture: exit early in test_EnumPorts when no port info has been returned.

Guenther
This commit is contained in:
Günther Deschner 2009-03-06 12:24:23 +01:00
parent 2fcc921237
commit 8bc7bb77be

View File

@ -139,6 +139,8 @@ static bool test_EnumPorts(struct torture_context *tctx,
torture_assert_werr_ok(tctx, r.out.result, "EnumPorts failed"); torture_assert_werr_ok(tctx, r.out.result, "EnumPorts failed");
torture_assert(tctx, info, "EnumPorts returned no info");
ctx->port_count[level] = count; ctx->port_count[level] = count;
ctx->ports[level] = info; ctx->ports[level] = info;
} }