[SCTP]: Fix getsockname for sctp when an ipv6 socket accepts a connection from
an ipv4 socket. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6736dc35e9
commit
bf031fff1f
1 changed files with 2 additions and 1 deletions
|
@ -261,7 +261,8 @@ void sctp_transport_route(struct sctp_transport *transport,
|
|||
* association's active path for getsockname().
|
||||
*/
|
||||
if (asoc && (transport == asoc->peer.active_path))
|
||||
af->to_sk_saddr(&transport->saddr, asoc->base.sk);
|
||||
opt->pf->af->to_sk_saddr(&transport->saddr,
|
||||
asoc->base.sk);
|
||||
} else
|
||||
transport->pmtu = SCTP_DEFAULT_MAXSEGMENT;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue