lkml.org 
[lkml]   [2000]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][RFC] check fib6_lookup_1 return in fib6_lookup_1
Hi,

fib6_lookup_1 can return NULL, please consider applying.

- Arnaldo

--- linux-2.4.0-test8/net/ipv6/ip6_fib.c Wed May 3 05:48:04 2000
+++ linux-2.4.0-test8.acme/net/ipv6/ip6_fib.c Mon Sep 11 18:28:48 2000
@@ -638,6 +638,9 @@
if (narg->addr) {
st = fib6_lookup_1(fn->subtree, narg);

+ if (!st)
+ return NULL;
+
if (!(st->fn_flags & RTN_ROOT))
{
return st;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.040 / U:1.404 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site