[PATCH 3/6] fwd: Don't initialise unused port bitmaps
Since b223bec48213 ("fwd, tcp, udp: Set up listening sockets based on
forward table"), the 'map' field of struct fwd_ports has only been used
for forwarding rules with the FWD_SCAN bit, where it is initialised from a
port scan. However, we still pointlessly initialise it for rules with
!FWD_SCAN. Remove the unneeded code.
Fixes: b223bec48213 ("fwd, tcp, udp: Set up listening sockets based on forward table")
Signed-off-by: David Gibson
participants (1)
-
David Gibson