[conntrack-tools] parse: fix broken destination port address translation
Pablo Neira
netfilter-cvslog-bounces at lists.netfilter.org
Thu Mar 19 01:43:06 CET 2009
Gitweb: http://git.netfilter.org/cgi-bin/gitweb.cgi?p=conntrack-tools.git;a=commit;h=28255df51433846bad67cccb69bb285660ef1667
commit 28255df51433846bad67cccb69bb285660ef1667
Author: Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Thu Mar 19 01:42:13 2009 +0100
Commit: Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Thu Mar 19 01:42:13 2009 +0100
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 at yahoo.fr>
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
via 28255df51433846bad67cccb69bb285660ef1667 (commit)
from 59f5b36aaee6341cdd03981476d91e167c5b6b31 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 28255df51433846bad67cccb69bb285660ef1667
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date: Thu Mar 19 01:42:13 2009 +0100
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 at yahoo.fr>
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
-----------------------------------------------------------------------
src/parse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 at yahoo.fr>
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
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] = {
More information about the netfilter-cvslog
mailing list