summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/param/loadparm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 0a71d02771..41fee6fde9 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -3090,7 +3090,9 @@ struct parm_struct *lpcfg_next_parameter(struct loadparm_context *lp_ctx, int sn
if ((*i) > 0
&& (parm_table[*i].offset ==
- parm_table[(*i) - 1].offset))
+ parm_table[(*i) - 1].offset)
+ && (parm_table[*i].p_class ==
+ parm_table[(*i) - 1].p_class))
continue;
return &parm_table[(*i)++];