summaryrefslogtreecommitdiff
path: root/source3/rpc_server/spoolss
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 21:31:44 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 22:22:12 +0200
commit261d6b0e9bc837520630410b5c016ea043cd8518 (patch)
tree544805486f99764608ecd03bddc2b513922043f7 /source3/rpc_server/spoolss
parent8d9cbc7c221ae49acef60f82e90f387b05c8e91f (diff)
downloadsamba-261d6b0e9bc837520630410b5c016ea043cd8518.tar.gz
samba-261d6b0e9bc837520630410b5c016ea043cd8518.tar.bz2
samba-261d6b0e9bc837520630410b5c016ea043cd8518.zip
s3: Fix Coverity ID 2195: NO_EFFECT
level is unsigned
Diffstat (limited to 'source3/rpc_server/spoolss')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index 030324c085..d95bd54aec 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -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) ||