diff options
-rw-r--r-- | net/sctp/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c index b971cd226cf5..0f4d15fc2627 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c | |||
@@ -387,7 +387,7 @@ int sctp_packet_transmit(struct sctp_packet *packet) | |||
387 | int err = 0; | 387 | int err = 0; |
388 | int padding; /* How much padding do we need? */ | 388 | int padding; /* How much padding do we need? */ |
389 | __u8 has_data = 0; | 389 | __u8 has_data = 0; |
390 | struct dst_entry *dst = tp->dst; | 390 | struct dst_entry *dst; |
391 | unsigned char *auth = NULL; /* pointer to auth in skb data */ | 391 | unsigned char *auth = NULL; /* pointer to auth in skb data */ |
392 | 392 | ||
393 | pr_debug("%s: packet:%p\n", __func__, packet); | 393 | pr_debug("%s: packet:%p\n", __func__, packet); |
@@ -420,9 +420,9 @@ int sctp_packet_transmit(struct sctp_packet *packet) | |||
420 | } | 420 | } |
421 | } | 421 | } |
422 | dst = dst_clone(tp->dst); | 422 | dst = dst_clone(tp->dst); |
423 | skb_dst_set(nskb, dst); | ||
424 | if (!dst) | 423 | if (!dst) |
425 | goto no_route; | 424 | goto no_route; |
425 | skb_dst_set(nskb, dst); | ||
426 | 426 | ||
427 | /* Build the SCTP header. */ | 427 | /* Build the SCTP header. */ |
428 | sh = (struct sctphdr *)skb_push(nskb, sizeof(struct sctphdr)); | 428 | sh = (struct sctphdr *)skb_push(nskb, sizeof(struct sctphdr)); |