summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-06 12:24:23 +0100
committerGünther Deschner <gd@samba.org>2009-03-06 14:28:22 +0100
commit8bc7bb77bebcac9b10f2718f879d92813fe275da (patch)
tree5e003eb77245479316f06ec8bb07b6c8cec4fa2d /source4/torture
parent2fcc921237bbaac2de331ee53828ab72394a6186 (diff)
downloadsamba-8bc7bb77bebcac9b10f2718f879d92813fe275da.tar.gz
samba-8bc7bb77bebcac9b10f2718f879d92813fe275da.tar.bz2
samba-8bc7bb77bebcac9b10f2718f879d92813fe275da.zip
s4-smbtorture: exit early in test_EnumPorts when no port info has been returned.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 7e8461ef83..64b698a402 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -139,6 +139,8 @@ static bool test_EnumPorts(struct torture_context *tctx,
torture_assert_werr_ok(tctx, r.out.result, "EnumPorts failed");
+ torture_assert(tctx, info, "EnumPorts returned no info");
+
ctx->port_count[level] = count;
ctx->ports[level] = info;
}