diff options
author | Michael Adam <obnox@samba.org> | 2011-07-21 14:10:50 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-07-21 17:24:16 +0200 |
commit | fc525c8a25fa2623eaae1b12281988e0aea1f220 (patch) | |
tree | bf69f15f6000652ae1cc461e80a7637ae9fb7602 | |
parent | 2568a8b4635bb7fb76dbd4bdd5eb2decb09f708a (diff) | |
download | samba-fc525c8a25fa2623eaae1b12281988e0aea1f220.tar.gz samba-fc525c8a25fa2623eaae1b12281988e0aea1f220.tar.bz2 samba-fc525c8a25fa2623eaae1b12281988e0aea1f220.zip |
s3:loadparm: fix a check that was accidentially an assignment in lp_servicebynum()
-rw-r--r-- | source3/param/loadparm.c | 2 |
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]; |