summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 0935181e09..6902bb0437 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -7047,9 +7047,11 @@ static void lp_set_enum_parm( struct parm_struct *parm, const char *pszParmValue
for (i = 0; parm->enum_list[i].name; i++) {
if ( strequal(pszParmValue, parm->enum_list[i].name)) {
*ptr = parm->enum_list[i].value;
- break;
+ return;
}
}
+ DEBUG(0, ("WARNING: Ignoring invalid value '%s' for parameter '%s'\n",
+ pszParmValue, parm->label));
}
/***************************************************************************