summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-12-10 13:22:52 +0100
committerGünther Deschner <gd@samba.org>2012-12-12 09:42:33 +0100
commitdc9fa1a026e9cd543a53b9ca72b0c52e1740c2e4 (patch)
tree342425c87b80dfe734ae075b6720106d97bc8065 /source4/torture/rpc
parent33d1d525080297686f60b46661b0b4021d31199b (diff)
downloadsamba-dc9fa1a026e9cd543a53b9ca72b0c52e1740c2e4.tar.gz
samba-dc9fa1a026e9cd543a53b9ca72b0c52e1740c2e4.tar.bz2
samba-dc9fa1a026e9cd543a53b9ca72b0c52e1740c2e4.zip
torture: Fix torture_rpc_spoolss_printer_teardown_common().
Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 6e0d9edcf8..b1229ac3aa 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -7646,11 +7646,9 @@ static bool torture_rpc_spoolss_printer_teardown_common(struct torture_context *
"failed to remove printer driver");
}
- if (p) {
+ if (p && !t->wellknown) {
b = p->binding_handle;
- }
- if (!t->wellknown) {
torture_assert(tctx,
test_DeletePrinter(tctx, b, &t->handle),
"failed to delete printer");