diff options
author | Günther Deschner <gd@samba.org> | 2010-06-07 11:21:26 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-06-07 11:21:26 +0200 |
commit | e271a2b861206eef65e3c9cc14c3403579d4621a (patch) | |
tree | 3059045ede509966b678be731bb7b3c4f8fd9746 | |
parent | 4591fdbc18b0d7a1117de196675067e88bc341b7 (diff) | |
download | samba-e271a2b861206eef65e3c9cc14c3403579d4621a.tar.gz samba-e271a2b861206eef65e3c9cc14c3403579d4621a.tar.bz2 samba-e271a2b861206eef65e3c9cc14c3403579d4621a.zip |
s4-smbtorture: handle printservers w/o printers in RPC-SPOOLSS-ACCESS.
Guenther
-rw-r--r-- | source4/torture/rpc/spoolss_access.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/spoolss_access.c b/source4/torture/rpc/spoolss_access.c index 812a280e9e..2bf03317c2 100644 --- a/source4/torture/rpc/spoolss_access.c +++ b/source4/torture/rpc/spoolss_access.c @@ -470,7 +470,7 @@ static bool torture_rpc_spoolss_access_setup_common(struct torture_context *tctx test_EnumPrinters_findone(tctx, spoolss_pipe, &printername), "failed to enumerate printers"); - if (t->user.sd) { + if (t->user.sd && printername) { torture_assert(tctx, spoolss_access_setup_sd(tctx, spoolss_pipe, printername, @@ -573,7 +573,7 @@ static bool torture_rpc_spoolss_access_teardown_common(struct torture_context *t } /* restore sd */ - if (t->user.sd) { + if (t->user.sd && t->printername) { struct policy_handle handle; struct spoolss_SetPrinterInfoCtr info_ctr; struct spoolss_SetPrinterInfo3 info3; |