[PATCH][RFC] check fib6_lookup_1 return in fib6_lookup_1

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Mon Sep 11 2000 - 16:34:22 EST


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/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:16 EST