From: Neil Horman Date: Sat, 3 Dec 2005 04:32:29 +0000 (-0800) Subject: [SCTP]: Fix getsockname for sctp when an ipv6 socket accepts a connection from X-Git-Tag: v2.6.15-rc5~11^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bf031fff1fac77775b2cd2c72ad8b017f4c0af13;p=linux-2.6-omap-h63xx.git [SCTP]: Fix getsockname for sctp when an ipv6 socket accepts a connection from an ipv4 socket. Signed-off-by: Neil Horman Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller --- diff --git a/net/sctp/transport.c b/net/sctp/transport.c index 6bc27200e6c..268ddaf2dc0 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c @@ -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; }