From 9168713774c02ba2f71d89379cc239a900ebeafe Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 27 Jul 2010 12:27:54 +0200 Subject: s3-spoolss: Fixed FILL_DRIVER_STRING leading to wrong results. --- source3/rpc_server/srv_spoolss_nt.c | 4 ++-- 1 file 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) \ -- cgit