mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Fix Coverity ID 2195: NO_EFFECT
level is unsigned
This commit is contained in:
parent
8d9cbc7c22
commit
261d6b0e9b
@ -1709,7 +1709,7 @@ WERROR _spoolss_OpenPrinterEx(struct pipes_struct *p,
|
||||
return WERR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
if (r->in.level < 0 || r->in.level > 3) {
|
||||
if (r->in.level > 3) {
|
||||
return WERR_INVALID_PARAM;
|
||||
}
|
||||
if ((r->in.level == 1 && !r->in.userlevel.level1) ||
|
||||
|
Loading…
Reference in New Issue
Block a user