summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-08-17 09:09:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:53 -0500
commited4b40e9cbf8c3f67ca2736eacba5bfd891200f1 (patch)
tree7c7e8f9b217b2337ab818510ebe48f85fe47884b /source3/param
parent891fa216ead2c5001bc8c671639ae59be79b968b (diff)
downloadsamba-ed4b40e9cbf8c3f67ca2736eacba5bfd891200f1.tar.gz
samba-ed4b40e9cbf8c3f67ca2736eacba5bfd891200f1.tar.bz2
samba-ed4b40e9cbf8c3f67ca2736eacba5bfd891200f1.zip
r24510: Fix logic. Thanks to Volker for the hint!
Michael (This used to be commit ce1d7ad1acb48a254add3ddfac5f13e05b8ec646)
Diffstat (limited to 'source3/param')
-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 0fd251c6f9..200006e22f 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2832,7 +2832,7 @@ BOOL lp_canonicalize_parameter(const char *parm_name, const char **canon_parm,
*inverse = False;
num = map_parameter(parm_name);
- if (num < 0 && !(parm_table[num].flags & FLAG_HIDE)) {
+ if ((num < 0) || !(parm_table[num].flags & FLAG_HIDE)) {
/* it is already canonical (parametric are canonical anyways) */
*canon_parm = parm_name;
return True;