mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Fix Coverity ID 2236: REVERSE_INULL
We have already dereferenced "b", and the other calls in this loop can only have worked with a valid handle
This commit is contained in:
parent
de635fe1f7
commit
8486f0fa04
@ -1148,9 +1148,7 @@ static bool api_DosPrintQEnum(struct smbd_server_connection *sconn,
|
||||
subcntarr[i] = num_jobs;
|
||||
subcnt += subcntarr[i];
|
||||
|
||||
if (b && is_valid_policy_hnd(&handle)) {
|
||||
dcerpc_spoolss_ClosePrinter(b, mem_ctx, &handle, &werr);
|
||||
}
|
||||
dcerpc_spoolss_ClosePrinter(b, mem_ctx, &handle, &werr);
|
||||
}
|
||||
|
||||
if (init_package(&desc,queuecnt,subcnt)) {
|
||||
|
Loading…
Reference in New Issue
Block a user