[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>

authored by Neil Horman and committed by David S. Miller bf031fff 6736dc35

+2 -1
+2 -1
net/sctp/transport.c
··· 261 * association's active path for getsockname(). 262 */ 263 if (asoc && (transport == asoc->peer.active_path)) 264 - af->to_sk_saddr(&transport->saddr, asoc->base.sk); 265 } else 266 transport->pmtu = SCTP_DEFAULT_MAXSEGMENT; 267 }
··· 261 * association's active path for getsockname(). 262 */ 263 if (asoc && (transport == asoc->peer.active_path)) 264 + opt->pf->af->to_sk_saddr(&transport->saddr, 265 + asoc->base.sk); 266 } else 267 transport->pmtu = SCTP_DEFAULT_MAXSEGMENT; 268 }