s3: Fix Coverity ID 1017, CHECKED_RETURN
authorVolker Lendecke <vl@samba.org>
Wed, 16 Mar 2011 17:47:36 +0000 (18:47 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 16 Mar 2011 20:14:58 +0000 (21:14 +0100)
Günther, please check!

source3/rpc_server/spoolss/srv_spoolss_nt.c

index dc036faf75fe914caccbd22f1f14c30637012dc7..3026a889e6602c6df1fb70875c1b6ef42e75ffc9 100644 (file)
@@ -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,