summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-03-19 01:42:13 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-03-19 01:42:13 +0100
commit28255df51433846bad67cccb69bb285660ef1667 (patch)
treeabbffd929db879c04bdbed0be4c0782650af7a7a /src/parse.c
parent59f5b36aaee6341cdd03981476d91e167c5b6b31 (diff)
downloadconntrack-tools-28255df51433846bad67cccb69bb285660ef1667.tar.gz
conntrack-tools-28255df51433846bad67cccb69bb285660ef1667.zip
parse: fix broken destination port address translation
This patch fixes a bug in the message parser which leads to treat a destination PAT as a source PAT. Reported-by: Habib Sahnoun <sahnounhab@yahoo.fr> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c
index 75daac1..76287fd 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -114,7 +114,7 @@ static struct parser h[NTA_MAX] = {
},
[NTA_DPAT_PORT] = {
.parse = parse_u16,
- .attr = ATTR_SNAT_PORT,
+ .attr = ATTR_DNAT_PORT,
.size = NTA_SIZE(sizeof(uint16_t)),
},
[NTA_NAT_SEQ_ADJ] = {