The Samba-Bugzilla – Attachment 6455 Details for
Bug 7993
"net rpc printer MIGRATE" command fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for handling a single printer
patch (text/plain), 1009 bytes, created by
Guenther Deschner
on 2011-05-19 08:57:19 UTC
(
hide
)
Description:
fix for handling a single printer
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2011-05-19 08:57:19 UTC
Size:
1009 bytes
patch
obsolete
>From 072c331f085409a08d70276f0ed7cad9ab8ea02c Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Fri, 1 Oct 2010 06:08:12 +0200 >Subject: [PATCH] s3-net: make sure we dont crash when publishing a single > printer. > >Guenther >(cherry picked from commit 21576e3f8c32878910460bf9575c200ad93d682a) >--- > source3/utils/net_rpc_printer.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > >diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c >index dfc150f..8b6d73e 100644 >--- a/source3/utils/net_rpc_printer.c >+++ b/source3/utils/net_rpc_printer.c >@@ -1091,6 +1091,11 @@ static bool get_printer_info(struct rpc_pipe_client *pipe_hnd, > &hnd)) > return false; > >+ *info_p = talloc_zero(mem_ctx, union spoolss_PrinterInfo); >+ if (*info_p == NULL) { >+ return false; >+ } >+ > if (!net_spoolss_getprinter(pipe_hnd, mem_ctx, &hnd, level, *info_p)) { > rpccli_spoolss_ClosePrinter(pipe_hnd, mem_ctx, &hnd, NULL); > return false; >-- >1.7.4.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
asn
:
review+
Actions:
View
Attachments on
bug 7993
: 6455