diff options
Diffstat (limited to 'net/sctp/transport.c')
-rw-r--r-- | net/sctp/transport.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c index d1b6834a3a47..05ab5e9c7c47 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c | |||
@@ -68,7 +68,6 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, | |||
68 | 68 | ||
69 | peer->dst = NULL; | 69 | peer->dst = NULL; |
70 | memset(&peer->saddr, 0, sizeof(union sctp_addr)); | 70 | memset(&peer->saddr, 0, sizeof(union sctp_addr)); |
71 | memset(&peer->saddr_h, 0, sizeof(union sctp_addr)); | ||
72 | 71 | ||
73 | /* From 6.3.1 RTO Calculation: | 72 | /* From 6.3.1 RTO Calculation: |
74 | * | 73 | * |
@@ -261,7 +260,6 @@ void sctp_transport_route(struct sctp_transport *transport, | |||
261 | else | 260 | else |
262 | af->get_saddr(asoc, dst, daddr, &transport->saddr); | 261 | af->get_saddr(asoc, dst, daddr, &transport->saddr); |
263 | 262 | ||
264 | flip_to_h(&transport->saddr_h, &transport->saddr); | ||
265 | transport->dst = dst; | 263 | transport->dst = dst; |
266 | if ((transport->param_flags & SPP_PMTUD_DISABLE) && transport->pathmtu) { | 264 | if ((transport->param_flags & SPP_PMTUD_DISABLE) && transport->pathmtu) { |
267 | return; | 265 | return; |
@@ -273,7 +271,7 @@ void sctp_transport_route(struct sctp_transport *transport, | |||
273 | * association's active path for getsockname(). | 271 | * association's active path for getsockname(). |
274 | */ | 272 | */ |
275 | if (asoc && (transport == asoc->peer.active_path)) | 273 | if (asoc && (transport == asoc->peer.active_path)) |
276 | opt->pf->af->to_sk_saddr(&transport->saddr_h, | 274 | opt->pf->af->to_sk_saddr(&transport->saddr, |
277 | asoc->base.sk); | 275 | asoc->base.sk); |
278 | } else | 276 | } else |
279 | transport->pathmtu = SCTP_DEFAULT_MAXSEGMENT; | 277 | transport->pathmtu = SCTP_DEFAULT_MAXSEGMENT; |