]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sctp/output.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes...
[karo-tx-linux.git] / net / sctp / output.c
index f0c91df59d4e17ed0da11874a0368b63a3f6ff1a..b94c2119056661aaa61073a29bd429f069f7923f 100644 (file)
@@ -405,10 +405,10 @@ int sctp_packet_transmit(struct sctp_packet *packet)
                        sctp_assoc_sync_pmtu(asoc);
                }
        }
-       nskb->dst = dst_clone(tp->dst);
-       if (!nskb->dst)
+       dst = dst_clone(tp->dst);
+       skb_dst_set(nskb, dst);
+       if (!dst)
                goto no_route;
-       dst = nskb->dst;
 
        /* Build the SCTP header.  */
        sh = (struct sctphdr *)skb_push(nskb, sizeof(struct sctphdr));