Why not change the comparison to "<=" from "<" and avoid the "+1" change? On 6/20/2017 9:36 AM, Volker Lendecke via samba-technical wrote: > - $self->pidl("if (ndr_table_$iface\.num_calls < $fn->{OPNUM}) {"); > + $self->pidl("if (ndr_table_$iface\.num_calls < " . ($fn->{OPNUM}+1) . > + ") {");