1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +03:00

s4-param Also check the p_class matches when comparing offset

This commit is contained in:
Andrew Bartlett 2011-07-07 21:30:02 +10:00
parent 3ab3159f75
commit 27e169e17e

View File

@ -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)++];