]> git.hungrycats.org Git - linux/commitdiff
[NETFILTER]: Fix potential OOPS in ipt_REDIRECT.
authorBart De Schuymer <bdschuym@pandora.be>
Sun, 26 Oct 2003 16:11:51 +0000 (08:11 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 26 Oct 2003 16:11:51 +0000 (08:11 -0800)
net/ipv4/netfilter/ipt_REDIRECT.c

index f1cb5337201e3fdabc8c46aefe1be0f893258dff..bf9346b7e851ec4c145032dd8b8a3e8b456d8136 100644 (file)
@@ -83,7 +83,7 @@ redirect_target(struct sk_buff **pskb,
 
                /* Device might not have an associated in_device. */
                indev = (struct in_device *)(*pskb)->dev->ip_ptr;
-               if (indev == NULL)
+               if (indev == NULL || indev->ifa_list == NULL)
                        return NF_DROP;
 
                /* Grab first address on interface. */