summaryrefslogtreecommitdiffstats
path: root/net/ipv4/icmp.c
diff options
context:
space:
mode:
authorChristoph Paasch2012-08-20 04:52:09 +0200
committerDavid S. Miller2012-08-21 23:49:11 +0200
commit1a7b27c97ce675b42eeb7bfaf6e15c34f35c8f95 (patch)
treeab7bbaf25d1c8c0bc73107c97364295a688c1665 /net/ipv4/icmp.c
parenttcp: fix possible socket refcount problem (diff)
downloadkernel-qcow2-linux-1a7b27c97ce675b42eeb7bfaf6e15c34f35c8f95.tar.gz
kernel-qcow2-linux-1a7b27c97ce675b42eeb7bfaf6e15c34f35c8f95.tar.xz
kernel-qcow2-linux-1a7b27c97ce675b42eeb7bfaf6e15c34f35c8f95.zip
ipv4: Use newinet->inet_opt in inet_csk_route_child_sock()
Since 0e734419923bd ("ipv4: Use inet_csk_route_child_sock() in DCCP and TCP."), inet_csk_route_child_sock() is called instead of inet_csk_route_req(). However, after creating the child-sock in tcp/dccp_v4_syn_recv_sock(), ireq->opt is set to NULL, before calling inet_csk_route_child_sock(). Thus, inside inet_csk_route_child_sock() opt is always NULL and the SRR-options are not respected anymore. Packets sent by the server won't have the correct destination-IP. This patch fixes it by accessing newinet->inet_opt instead of ireq->opt inside inet_csk_route_child_sock(). Reported-by: Luca Boccassi <luca.boccassi@gmail.com> Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/icmp.c')
0 files changed, 0 insertions, 0 deletions