1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r24510: Fix logic. Thanks to Volker for the hint!

Michael
(This used to be commit ce1d7ad1ac)
This commit is contained in:
Michael Adam 2007-08-17 09:09:04 +00:00 committed by Gerald (Jerry) Carter
parent 891fa216ea
commit ed4b40e9cb

View File

@ -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;