summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;