]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/dccp/ipv6.c
[NETNS][DCCPV6]: Don't pass NULL to ip6_dst_lookup.
[karo-tx-linux.git] / net / dccp / ipv6.c
index 94d749e6d49439e77b4593a770abc9020699ef18..b657dea9ee27480621afb3edaae4ad24aadc0ce4 100644 (file)
@@ -322,7 +322,7 @@ static void dccp_v6_ctl_send_reset(struct sock *sk, struct sk_buff *rxskb)
        security_skb_classify_flow(rxskb, &fl);
 
        /* sk = NULL, but it is safe for now. RST socket required. */
-       if (!ip6_dst_lookup(NULL, &skb->dst, &fl)) {
+       if (!ip6_dst_lookup(dccp_v6_ctl_sk, &skb->dst, &fl)) {
                if (xfrm_lookup(&skb->dst, &fl, NULL, 0) >= 0) {
                        ip6_xmit(dccp_v6_ctl_sk, skb, &fl, NULL, 0);
                        DCCP_INC_STATS_BH(DCCP_MIB_OUTSEGS);