summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-12-25 22:55:34 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-12-25 22:55:34 +0100
commiteb08d63b87296d5267506e9f6de820c3aaf8166d (patch)
treed323e1ff0bdbc6b4863b069f17a8286a6adc40e9 /pfinet
parentf76dbd03de65985c9f1d0e5675df3780b66a070b (diff)
Fix NULL dereference
* pfinet/linux-src/net/ipv6/ip6_fib.c (fib6_locate): Do not dereference fn when it is NULL.
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/linux-src/net/ipv6/ip6_fib.c2
1 files changed, 1 insertions, 1 deletions
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,