1
0
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:
Volker Lendecke 2011-03-27 21:31:44 +02:00
parent 8d9cbc7c22
commit 261d6b0e9b

View File

@ -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) ||