summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-07-27 12:27:54 +0200
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:16 -0400
commit9168713774c02ba2f71d89379cc239a900ebeafe (patch)
treea33db09e802930dc2af67776e13ac82c467db4b9 /source3/rpc_server
parent90c17828824401c7be065a7bbf706dcafef0fc31 (diff)
downloadsamba-9168713774c02ba2f71d89379cc239a900ebeafe.tar.gz
samba-9168713774c02ba2f71d89379cc239a900ebeafe.tar.bz2
samba-9168713774c02ba2f71d89379cc239a900ebeafe.zip
s3-spoolss: Fixed FILL_DRIVER_STRING leading to wrong results.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 5840283eab..6583640726 100644
--- 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) \