s3-spoolss: Fixed FILL_DRIVER_STRING leading to wrong results.
authorAndreas Schneider <asn@samba.org>
Tue, 27 Jul 2010 10:27:54 +0000 (12:27 +0200)
committerSimo Sorce <idra@samba.org>
Tue, 27 Jul 2010 14:27:16 +0000 (10:27 -0400)
source3/rpc_server/srv_spoolss_nt.c

index 5840283eabd0d88fb11ac563b606331bb4de229d..658364072606c8b8d9b247fe89024294f9e3f08b 100644 (file)
@@ -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) \