From eb08d63b87296d5267506e9f6de820c3aaf8166d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 25 Dec 2010 22:55:34 +0100 Subject: Fix NULL dereference * pfinet/linux-src/net/ipv6/ip6_fib.c (fib6_locate): Do not dereference fn when it is NULL. --- pfinet/linux-src/net/ipv6/ip6_fib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pfinet') diff --git a/pfinet/linux-src/net/ipv6/ip6_fib.c b/pfinet/linux-src/net/ipv6/ip6_fib.c index 18df5c38..d1908348 100644 --- a/pfinet/linux-src/net/ipv6/ip6_fib.c +++ b/pfinet/linux-src/net/ipv6/ip6_fib.c @@ -744,7 +744,7 @@ struct fib6_node * fib6_locate(struct fib6_node *root, #ifdef CONFIG_IPV6_SUBTREES if (src_len) { BUG_TRAP(saddr!=NULL); - if (fn == NULL) + if (fn != NULL) fn = fn->subtree; if (fn) fn = fib6_locate_1(fn, saddr, src_len, -- cgit v1.2.3