mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
cope with no printers returned from EnumPrinters
(This used to be commit 8c49669dbe
)
This commit is contained in:
parent
20f1530a11
commit
8f38cc8df8
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user