summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-04 15:48:04 -0700
committerJeremy Allison <jra@sn-devel-104.sn.samba.org>2010-10-05 17:32:34 +0000
commit4618e25c950666fbe97513982ab21f270ea1dad0 (patch)
treed66ea40cb5d551745cb050fdf1a97cfc3dc702b9
parentaabfb7162c1e87ebfec1829488a2cd20af18ae0e (diff)
downloadsamba-4618e25c950666fbe97513982ab21f270ea1dad0.tar.gz
samba-4618e25c950666fbe97513982ab21f270ea1dad0.tar.bz2
samba-4618e25c950666fbe97513982ab21f270ea1dad0.zip
Fix bug 7704 - Possible error in fix to rpc_server/srv_spoolss_nt.c.
From pjb1008@cam.ac.uk - Service numbers start from 0. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Oct 5 17:32:34 UTC 2010 on sn-devel-104
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 8c4067bdc8..4de2cdbae6 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -409,7 +409,7 @@ static WERROR delete_printer_hook(TALLOC_CTX *ctx, struct security_token *token,
reload_services(msg_ctx, -1, false);
unbecome_root();
- if ( lp_servicenumber( sharename ) > 0 )
+ if ( lp_servicenumber( sharename ) >= 0 )
return WERR_ACCESS_DENIED;
return WERR_OK;