NAT rule dst port reference corrections. Fixes #10246
NAT rule dst port reference corrections. Fixes #10246

When negating, the number of elements in $dstaddr_port is different. Do
not hardcode the index of the assumed last value, but calculate it
instead.

Otherwise the ruleset can have invalid entries like "port port" in
certain cases.

pfsense/pfsense,dennypage/pfsense,NewEraCracker/pfsense,dennypage/pfsense,pfsense/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,dennypage/pfsense,phil-davis/pfsense,pfsense/pfsense,dennypage/pfsense,phil-davis/pfsense,phil-davis/pfsense,pfsense/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense