diff options
author | Andreas Schneider <asn@samba.org> | 2010-07-27 12:27:54 +0200 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-07-27 10:27:16 -0400 |
commit | 9168713774c02ba2f71d89379cc239a900ebeafe (patch) | |
tree | a33db09e802930dc2af67776e13ac82c467db4b9 /source3 | |
parent | 90c17828824401c7be065a7bbf706dcafef0fc31 (diff) | |
download | samba-9168713774c02ba2f71d89379cc239a900ebeafe.tar.gz samba-9168713774c02ba2f71d89379cc239a900ebeafe.tar.bz2 samba-9168713774c02ba2f71d89379cc239a900ebeafe.zip |
s3-spoolss: Fixed FILL_DRIVER_STRING leading to wrong results.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 4 |
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) \ |