]> Pileus Git - ~andy/linux/blobdiff - net/sctp/associola.c
sctp: fix oops when updating retransmit path with DEBUG on
[~andy/linux] / net / sctp / associola.c
index 0698cad6176367c5a0ad6dffefcf07133304e9fb..922fdd7eb57335e41f7112711210273c6522ec5a 100644 (file)
@@ -1323,6 +1323,8 @@ void sctp_assoc_update_retran_path(struct sctp_association *asoc)
 
        if (t)
                asoc->peer.retran_path = t;
+       else
+               t = asoc->peer.retran_path;
 
        SCTP_DEBUG_PRINTK_IPADDR("sctp_assoc_update_retran_path:association"
                                 " %p addr: ",