Messages in this thread Patch in this message |  | | Date | Mon, 11 Sep 2000 18:34:22 -0300 | From | Arnaldo Carvalho de Melo <> | 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/
|  |