Commit 94e6721d authored by David S. Miller's avatar David S. Miller
parents e2aec372 499031ac
...@@ -97,9 +97,11 @@ static void send_reset(struct net *net, struct sk_buff *oldskb) ...@@ -97,9 +97,11 @@ static void send_reset(struct net *net, struct sk_buff *oldskb)
fl.fl_ip_dport = otcph.source; fl.fl_ip_dport = otcph.source;
security_skb_classify_flow(oldskb, &fl); security_skb_classify_flow(oldskb, &fl);
dst = ip6_route_output(net, NULL, &fl); dst = ip6_route_output(net, NULL, &fl);
if (dst == NULL) if (dst == NULL || dst->error) {
dst_release(dst);
return; return;
if (dst->error || xfrm_lookup(net, &dst, &fl, NULL, 0)) }
if (xfrm_lookup(net, &dst, &fl, NULL, 0))
return; return;
hh_len = (dst->dev->hard_header_len + 15)&~15; hh_len = (dst->dev->hard_header_len + 15)&~15;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment