Skip to content

Commit

Permalink
[SCTP]: Fix getsockname for sctp when an ipv6 socket accepts a connec…
Browse files Browse the repository at this point in the history
…tion from

an ipv4 socket.

Signed-off-by: Neil Horman <[email protected]>
Signed-off-by: Sridhar Samudrala <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
nhorman authored and davem330 committed Dec 3, 2005
1 parent 6736dc3 commit bf031ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sctp/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bf031ff

Please sign in to comment.