X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fnetfilter%2Fip_nat_proto_udp.c;h=e8eaf6a37f29ea677d2d2650abbee38315a5e7bc;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=802ceb70dedd8eda51eb8c1b631ef5bd7551cd85;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/net/ipv4/netfilter/ip_nat_proto_udp.c b/net/ipv4/netfilter/ip_nat_proto_udp.c index 802ceb70d..e8eaf6a37 100644 --- a/net/ipv4/netfilter/ip_nat_proto_udp.c +++ b/net/ipv4/netfilter/ip_nat_proto_udp.c @@ -113,7 +113,7 @@ udp_manip_pkt(struct sk_buff **pskb, newport = tuple->dst.u.udp.port; portptr = &hdr->dest; } - if (hdr->check) /* 0 is a special case meaning no checksum */ + if (hdr->check) { /* 0 is a special case meaning no checksum */ #ifdef CONFIG_XEN if ((*pskb)->proto_csum_blank) hdr->check = ip_nat_cheat_check(oldip, ~newip, hdr->check); @@ -123,6 +123,7 @@ udp_manip_pkt(struct sk_buff **pskb, ip_nat_cheat_check(*portptr ^ 0xFFFF, newport, hdr->check)); + } *portptr = newport; return 1; }