From 439e7590c920ebdf70e74e15483a3c1e3500331b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 16 Jun 2010 11:04:34 +0200 Subject: s3-lanman: Fix return code for "" printqname in api_DosPrintQGetInfo(). Guenther --- source3/smbd/lanman.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/smbd/lanman.c') diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 8c262628c7..72d488ecab 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -819,6 +819,11 @@ static bool api_DosPrintQGetInfo(struct smbd_server_connection *sconn, ZERO_STRUCT(handle); + if (QueueName == NULL || (strlen(QueueName) < 1)) { + desc.errcode = W_ERROR_V(WERR_INVALID_PARAM); + goto out; + } + status = rpc_connect_spoolss_pipe(conn, &cli); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("api_DosPrintQGetInfo: could not connect to spoolss: %s\n", -- cgit