s4-smbtorture: exit early in test_EnumPorts when no port info has been returned.
authorGünther Deschner <gd@samba.org>
Fri, 6 Mar 2009 11:24:23 +0000 (12:24 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 6 Mar 2009 13:28:22 +0000 (14:28 +0100)
Guenther

source4/torture/rpc/spoolss.c

index 7e8461ef831a1cf99c716fe8f8be698dbc8f018a..64b698a40205197dbd4c147fa388d76b813cf7fc 100644 (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(tctx, info, "EnumPorts returned no info");
+
                ctx->port_count[level]  = count;
                ctx->ports[level]       = info;
        }