[SCM] Samba Shared Repository - branch v3-5-test updated
Karolin Seeger
kseeger at samba.org
Fri May 20 13:03:54 MDT 2011
The branch, v3-5-test has been updated
via 9c75728 s3-net: make sure we dont crash when publishing a single printer.
from 19bbd0a s3/configure: fix GNU ld version detection with old gcc releases
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test
- Log -----------------------------------------------------------------
commit 9c75728c62cccb8da606ece2d9df08b592e7c7c0
Author: Günther Deschner <gd at samba.org>
Date: Fri Oct 1 06:08:12 2010 +0200
s3-net: make sure we dont crash when publishing a single printer.
Guenther
(cherry picked from commit 21576e3f8c32878910460bf9575c200ad93d682a)
Part of a fix for bug #7993 ("net rpc printer MIGRATE" command fails).
-----------------------------------------------------------------------
Summary of changes:
source3/utils/net_rpc_printer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
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;
--
Samba Shared Repository
More information about the samba-cvs
mailing list