Commit 5a0d4947 authored by Bart De Schuymer's avatar Bart De Schuymer Committed by David S. Miller

[NETFILTER]: Fix potential OOPS in ipt_REDIRECT.

parent b7ab2e9c
...@@ -83,7 +83,7 @@ redirect_target(struct sk_buff **pskb, ...@@ -83,7 +83,7 @@ redirect_target(struct sk_buff **pskb,
/* Device might not have an associated in_device. */ /* Device might not have an associated in_device. */
indev = (struct in_device *)(*pskb)->dev->ip_ptr; indev = (struct in_device *)(*pskb)->dev->ip_ptr;
if (indev == NULL) if (indev == NULL || indev->ifa_list == NULL)
return NF_DROP; return NF_DROP;
/* Grab first address on interface. */ /* Grab first address on interface. */
......
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