mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3: Fix Coverity ID 1017, CHECKED_RETURN
Günther, please check!
This commit is contained in:
parent
920b2fddc6
commit
3835d77795
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user