diff options
-rw-r--r-- | source3/rpc_server/srv_spoolss_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index 603a0b2702..768171a277 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -2140,7 +2140,7 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx, } /* Create the printername */ - if (info2->servername[0] != '\0') { + if (info2->servername != NULL && info2->servername[0] != '\0') { if (lp_force_printername(snum)) { const char *p = talloc_asprintf(info2, "%s\\%s", info2->servername, |