mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
This commit is contained in:
parent
33d1d52508
commit
dc9fa1a026
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user