Subject: [PATCH] netlink: routing (ipv4 ipv6) fix reply. From: Eric W. Biederman Date: 1133708010 -0700 Fix routing reply to use the appropriat socket. --- net/ipv4/route.c | 2 +- net/ipv6/route.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 4b6654c856e2f8761f3ef02178ef2b58182ac09d diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 22076b4..d500c4d 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2826,7 +2826,7 @@ int inet_rtm_getroute(struct sk_buff *in goto out_free; } - err = netlink_unicast(rtnl, skb, NETLINK_CB(in_skb).pid, MSG_DONTWAIT); + err = netlink_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).pid, MSG_DONTWAIT); if (err > 0) err = 0; out: return err; diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 64cd31a..330b3e6 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1826,7 +1826,7 @@ int inet6_rtm_getroute(struct sk_buff *i goto out_free; } - err = netlink_unicast(rtnl, skb, NETLINK_CB(in_skb).pid, MSG_DONTWAIT); + err = netlink_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).pid, MSG_DONTWAIT); if (err > 0) err = 0; out: -- 1.0.GIT