net: sctp: fix initialization of local source address on accepted ipv6 sockets
authorMatija Glavinic Pecotic <matija.glavinic-pecotic.ext@nsn.com>
Thu, 6 Feb 2014 07:30:10 +0000 (08:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2014 05:18:06 +0000 (21:18 -0800)
commit661dbf34129cecd20879cb7b1cbe936911da0f02
tree43043075ade39f36e1a78072adcd8007e81d1fd0
parent3d55f44f563de2ab83209e8ead48d922b0d56a65
net: sctp: fix initialization of local source address on accepted ipv6 sockets

commit  efe4208f47f907b86f528788da711e8ab9dea44d:
'ipv6: make lookups simpler and faster' broke initialization of local source
address on accepted ipv6 sockets. Before the mentioned commit receive address
was copied along with the contents of ipv6_pinfo in sctp_v6_create_accept_sk.
Now when it is moved, it has to be copied separately.

This also fixes lksctp's ipv6 regression in a sense that test_getname_v6, TC5 -
'getsockname on a connected server socket' now passes.

Signed-off-by: Matija Glavinic Pecotic <matija.glavinic-pecotic.ext@nsn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/ipv6.c