From 3835d77795bb3918a5eeea551afa02c94bb8db5a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 16 Mar 2011 18:47:36 +0100 Subject: s3: Fix Coverity ID 1017, CHECKED_RETURN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Günther, please check! --- source3/rpc_server/spoolss/srv_spoolss_nt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index dc036faf75..3026a889e6 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -3647,7 +3647,9 @@ static WERROR printer_notify_info(struct pipes_struct *p, if ( !option ) return WERR_BADFID; - get_printer_snum(p, hnd, &snum, NULL); + if (!get_printer_snum(p, hnd, &snum, NULL)) { + return WERR_BADFID; + } /* Maybe we should use the SYSTEM session_info here... */ result = winreg_get_printer(mem_ctx, -- cgit