netfilter: nft_nat: don't dump port information if unset
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 Jun 2014 11:45:38 +0000 (13:45 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 Jun 2014 11:08:14 +0000 (13:08 +0200)
commit915136065b7ca75af4cae06281e4dc43926edbfe
treea7ac3f16f90b58a14900846a80fa3d28ebc01eeb
parent6403d96254c7c44fdfa163248b1198c714c65f6a
netfilter: nft_nat: don't dump port information if unset

Don't include port information attributes if they are unset.

Reported-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_nat.c