sctp: sctp_sendmsg: Don't test known non-null sinfo
[linux-2.6.git] / net / sctp / protocol.c
index acb2ee7..4de77cb 100644 (file)
@@ -566,7 +566,7 @@ static void sctp_v4_get_saddr(struct sctp_sock *sk,
 
        if (rt) {
                saddr->v4.sin_family = AF_INET;
-               saddr->v4.sin_addr.s_addr = rt->rt_src;
+               saddr->v4.sin_addr.s_addr = fl->u.ip4.saddr;
        }
 }
 
@@ -848,8 +848,8 @@ static inline int sctp_v4_xmit(struct sk_buff *skb,
 
        SCTP_DEBUG_PRINTK("%s: skb:%p, len:%d, src:%pI4, dst:%pI4\n",
                          __func__, skb, skb->len,
-                         transport->fl.u.ip4.saddr,
-                         transport->fl.u.ip4.daddr);
+                         &transport->fl.u.ip4.saddr,
+                         &transport->fl.u.ip4.daddr);
 
        inet->pmtudisc = transport->param_flags & SPP_PMTUD_ENABLE ?
                         IP_PMTUDISC_DO : IP_PMTUDISC_DONT;