xt_qtaguid: Fix panic caused by synack processing
[firefly-linux-kernel-4.4.55.git] / net / netfilter / xt_qtaguid.c
index e1442bfb668dbaf9ecd3f7f425cc70a49b500a1a..822dc3c3bce1ecf7c853c695499505313119ecdc 100644 (file)
@@ -1689,7 +1689,7 @@ static bool qtaguid_mt(const struct sk_buff *skb, struct xt_action_param *par)
        /* default: Fall through and do UID releated work */
        }
 
-       sk = skb->sk;
+       sk = skb_to_full_sk(skb);
        /*
         * When in TCP_TIME_WAIT the sk is not a "struct sock" but
         * "struct inet_timewait_sock" which is missing fields.