[NETFILTER 07/14]: Fix missing src port initialization in tftp expectation mask

Patrick McHardy kaber at trash.net
Fri Feb 3 14:44:09 CET 2006


[NETFILTER]: Fix missing src port initialization in tftp expectation mask

Reported by David Ahern <dahern at avaya.com>, netfilter bugzilla #426.

Signed-off-by: Patrick McHardy <kaber at trash.net>

---
commit c84c986a5028347c036a1915a3320c51dd3be4a6
tree 702216309d0c48492f77f47ce2717671143eb876
parent 27a0e70cdd3fdf3988c94739ad75f6fc5d89c326
author Patrick McHardy <kaber at trash.net> Fri, 03 Feb 2006 12:39:41 +0100
committer Patrick McHardy <kaber at trash.net> Fri, 03 Feb 2006 12:39:41 +0100

 net/ipv4/netfilter/ip_conntrack_tftp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/netfilter/ip_conntrack_tftp.c b/net/ipv4/netfilter/ip_conntrack_tftp.c
index d3c5a37..4ba4463 100644
--- a/net/ipv4/netfilter/ip_conntrack_tftp.c
+++ b/net/ipv4/netfilter/ip_conntrack_tftp.c
@@ -71,6 +71,7 @@ static int tftp_help(struct sk_buff **ps
 
 		exp->tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple;
 		exp->mask.src.ip = 0xffffffff;
+		exp->mask.src.u.udp.port = 0;
 		exp->mask.dst.ip = 0xffffffff;
 		exp->mask.dst.u.udp.port = 0xffff;
 		exp->mask.dst.protonum = 0xff;



More information about the netfilter-devel mailing list