summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_printer.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-03-26 22:10:32 +1100
committerAndrew Tridgell <tridge@samba.org>2009-03-26 22:10:32 +1100
commit7eb7f423d048e869a19d560ab0d1ba3b51b62fa9 (patch)
tree18cb17db10e10a8d0f27d5a8e48ada2dfc16fae7 /source3/utils/net_rpc_printer.c
parent3f37342bc0e7c26b6a61490706fe8cec3e6d491e (diff)
parent56d74b62126083dd7e2a60d1b48b03e1b1798c90 (diff)
downloadsamba-7eb7f423d048e869a19d560ab0d1ba3b51b62fa9.tar.gz
samba-7eb7f423d048e869a19d560ab0d1ba3b51b62fa9.tar.bz2
samba-7eb7f423d048e869a19d560ab0d1ba3b51b62fa9.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/utils/net_rpc_printer.c')
-rw-r--r--source3/utils/net_rpc_printer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 1d0e9a38be..9721628f02 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -2260,14 +2260,13 @@ NTSTATUS rpc_printer_migrate_settings_internals(struct net_context *c,
info_dst.info2.secdesc = NULL;
#if 0
- if (asprintf(&devicename, "\\\\%s\\%s", longname,
- printername) < 0) {
+ info_dst.info2.devmode.devicename =
+ talloc_asprintf(mem_ctx, "\\\\%s\\%s",
+ longname, printername);
+ if (!info_dst.info2.devmode.devicename) {
nt_status = NT_STATUS_NO_MEMORY;
goto done;
}
-
- init_unistr(&ctr_dst.printers_2->devmode->devicename,
- devicename);
#endif
if (!net_spoolss_setprinter(pipe_hnd_dst, mem_ctx, &hnd_dst,
level, &info_dst))