summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/net/radix.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/net/radix.c')
-rw-r--r--cpukit/libnetworking/net/radix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libnetworking/net/radix.c b/cpukit/libnetworking/net/radix.c
index bc1b7ee1d1..d7419ccca4 100644
--- a/cpukit/libnetworking/net/radix.c
+++ b/cpukit/libnetworking/net/radix.c
@@ -264,8 +264,11 @@ rn_match(v_arg, head)
/*
* This extra grot is in case we are explicitly asked
* to look up the default. Ugh!
+ *
+ * Never return the root node itself, it seems to cause a
+ * lot of confusion.
*/
- if ((t->rn_flags & RNF_ROOT) && t->rn_dupedkey)
+ if (t->rn_flags & RNF_ROOT)
t = t->rn_dupedkey;
return t;
on1: