When using a pf rule with both nat-to and rdr-to, it could happen
authorbluhm <bluhm@openbsd.org>
Thu, 15 Oct 2015 19:48:44 +0000 (19:48 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 15 Oct 2015 19:48:44 +0000 (19:48 +0000)
commit6d03c693179f548b641b41023985c3dac2c0ce80
tree700480ee8e9efffed4a6b547d059a8c8242f9c0a
parentf61c434f95b8ce038a27b292de25e6161fe6dd6c
When using a pf rule with both nat-to and rdr-to, it could happen
that the nated source port was reused as destination port.  Do not
initialize nport at the beginning of the function, but where it is
needed.
OK sashan@
sys/net/pf_lb.c