diff options
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 3f7def2936b4..1339742e49f1 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -454,7 +454,7 @@ static struct dst_entry *sctp_v4_get_dst(struct sctp_association *asoc, | |||
454 | __FUNCTION__, NIPQUAD(fl.fl4_dst), | 454 | __FUNCTION__, NIPQUAD(fl.fl4_dst), |
455 | NIPQUAD(fl.fl4_src)); | 455 | NIPQUAD(fl.fl4_src)); |
456 | 456 | ||
457 | if (!ip_route_output_key(&rt, &fl)) { | 457 | if (!ip_route_output_key(&init_net, &rt, &fl)) { |
458 | dst = &rt->u.dst; | 458 | dst = &rt->u.dst; |
459 | } | 459 | } |
460 | 460 | ||
@@ -497,7 +497,7 @@ static struct dst_entry *sctp_v4_get_dst(struct sctp_association *asoc, | |||
497 | if ((laddr->state == SCTP_ADDR_SRC) && | 497 | if ((laddr->state == SCTP_ADDR_SRC) && |
498 | (AF_INET == laddr->a.sa.sa_family)) { | 498 | (AF_INET == laddr->a.sa.sa_family)) { |
499 | fl.fl4_src = laddr->a.v4.sin_addr.s_addr; | 499 | fl.fl4_src = laddr->a.v4.sin_addr.s_addr; |
500 | if (!ip_route_output_key(&rt, &fl)) { | 500 | if (!ip_route_output_key(&init_net, &rt, &fl)) { |
501 | dst = &rt->u.dst; | 501 | dst = &rt->u.dst; |
502 | goto out_unlock; | 502 | goto out_unlock; |
503 | } | 503 | } |