X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fnetfilter%2Fip_nat_proto_udp.c;fp=net%2Fipv4%2Fnetfilter%2Fip_nat_proto_udp.c;h=802ceb70dedd8eda51eb8c1b631ef5bd7551cd85;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=e8eaf6a37f29ea677d2d2650abbee38315a5e7bc;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;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 e8eaf6a37..802ceb70d 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,7 +123,6 @@ udp_manip_pkt(struct sk_buff **pskb, ip_nat_cheat_check(*portptr ^ 0xFFFF, newport, hdr->check)); - } *portptr = newport; return 1; }