summaryrefslogtreecommitdiff
path: root/source3/rpc_server/spoolss
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 18:47:36 +0100
committerVolker Lendecke <vl@samba.org>2011-03-16 21:14:58 +0100
commit3835d77795bb3918a5eeea551afa02c94bb8db5a (patch)
tree8ea3721a750c1c8b9cceb66710a44c15dfe7b107 /source3/rpc_server/spoolss
parent920b2fddc6b442ad4f1eb72dcb38921876182b8b (diff)
downloadsamba-3835d77795bb3918a5eeea551afa02c94bb8db5a.tar.gz
samba-3835d77795bb3918a5eeea551afa02c94bb8db5a.tar.bz2
samba-3835d77795bb3918a5eeea551afa02c94bb8db5a.zip
s3: Fix Coverity ID 1017, CHECKED_RETURN
Günther, please check!
Diffstat (limited to 'source3/rpc_server/spoolss')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c4
1 files changed, 3 insertions, 1 deletions
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,