summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-21 14:10:50 +0200
committerMichael Adam <obnox@samba.org>2011-07-21 17:24:16 +0200
commitfc525c8a25fa2623eaae1b12281988e0aea1f220 (patch)
treebf69f15f6000652ae1cc461e80a7637ae9fb7602 /source3
parent2568a8b4635bb7fb76dbd4bdd5eb2decb09f708a (diff)
downloadsamba-fc525c8a25fa2623eaae1b12281988e0aea1f220.tar.gz
samba-fc525c8a25fa2623eaae1b12281988e0aea1f220.tar.bz2
samba-fc525c8a25fa2623eaae1b12281988e0aea1f220.zip
s3:loadparm: fix a check that was accidentially an assignment in lp_servicebynum()
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 875aa6ed75..e1c5aab253 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -6421,7 +6421,7 @@ struct loadparm_service *lp_service(const char *pszServiceName)
struct loadparm_service *lp_servicebynum(int snum)
{
- if (snum = -1 || !LP_SNUM_OK(snum)) {
+ if ((snum == -1) || !LP_SNUM_OK(snum)) {
return NULL;
}
return ServicePtrs[snum];