summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-18 09:19:34 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-18 09:19:34 +0000
commit8f38cc8df83716b815cb75d6c3b502c13bd0ce8a (patch)
treedb040130bc10132a9d4090902fd2e2c0287c20c6 /source4
parent20f1530a11402a926cdd7b4d1f9dddb360985196 (diff)
downloadsamba-8f38cc8df83716b815cb75d6c3b502c13bd0ce8a.tar.gz
samba-8f38cc8df83716b815cb75d6c3b502c13bd0ce8a.tar.bz2
samba-8f38cc8df83716b815cb75d6c3b502c13bd0ce8a.zip
cope with no printers returned from EnumPrinters
(This used to be commit 8c49669dbec96df365d1866df24a17c1ff2c6cd0)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/spoolss.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 9009c8e99a..65bc6d519d 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -266,6 +266,11 @@ static BOOL test_EnumPrinters(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
continue;
}
+ if (!r.out.buffer) {
+ printf("No printers returned");
+ continue;
+ }
+
status = pull_spoolss_PrinterInfoArray(r.out.buffer, mem_ctx, r.in.level, r.out.count, &info);
if (!NT_STATUS_IS_OK(status)) {
printf("EnumPrintersArray parse failed - %s\n", nt_errstr(status));