1
0
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:
Volker Lendecke 2011-03-16 18:47:36 +01:00
parent 920b2fddc6
commit 3835d77795

View 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,