git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90c1782
)
s3-spoolss: Fixed FILL_DRIVER_STRING leading to wrong results.
author
Andreas Schneider
<asn@samba.org>
Tue, 27 Jul 2010 10:27:54 +0000
(12:27 +0200)
committer
Simo Sorce
<idra@samba.org>
Tue, 27 Jul 2010 14:27:16 +0000
(10:27 -0400)
source3/rpc_server/srv_spoolss_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_spoolss_nt.c
b/source3/rpc_server/srv_spoolss_nt.c
index 5840283eabd0d88fb11ac563b606331bb4de229d..658364072606c8b8d9b247fe89024294f9e3f08b 100644
(file)
--- a/
source3/rpc_server/srv_spoolss_nt.c
+++ b/
source3/rpc_server/srv_spoolss_nt.c
@@
-4263,10
+4263,10
@@
WERROR _spoolss_GetPrinter(pipes_struct *p,
do { \
if (in && strlen(in)) { \
out = talloc_strdup(mem_ctx, in); \
- W_ERROR_HAVE_NO_MEMORY(out); \
} else { \
- out =
NULL
; \
+ out =
talloc_strdup(mem_ctx, "")
; \
} \
+ W_ERROR_HAVE_NO_MEMORY(out); \
} while (0);
#define FILL_DRIVER_UNC_STRING(mem_ctx, server, arch, ver, in, out) \