diff options
Diffstat (limited to 'sys/linux/init_iptables.go')
| -rw-r--r-- | sys/linux/init_iptables.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/linux/init_iptables.go b/sys/linux/init_iptables.go index 86001b4c3..231bcfb77 100644 --- a/sys/linux/init_iptables.go +++ b/sys/linux/init_iptables.go @@ -64,9 +64,8 @@ func (arch *arch) generateNetfilterTable(g *prog.Gen, typ prog.Type, old prog.Ar // Assign the underflow entry once in a while. // We have it in underflow hooks, so no point in using it frequently. return pos - } else { - return offsets[g.Rand().Intn(len(offsets))] } + return offsets[g.Rand().Intn(len(offsets))] } // Assign offsets to used hooks. for hook := hookStart; hook < hookStart+hookCount; hook++ { |
