[SCTP]: Fix getsockname for sctp when an ipv6 socket accepts a connection from
authorNeil Horman <nhorman@tuxdriver.com>
Sat, 3 Dec 2005 04:32:29 +0000 (20:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Dec 2005 04:32:29 +0000 (20:32 -0800)
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>
net/sctp/transport.c

index 6bc27200e6cafc8251ebc50b3bac6521a943abf6..268ddaf2dc0f6baa8ca2f5ccf0c6a7bf5b98d480 100644 (file)
@@ -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;
 }