summaryrefslogtreecommitdiff
path: root/usr.sbin/unbound/services/outside_network.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/unbound/services/outside_network.c')
-rw-r--r--usr.sbin/unbound/services/outside_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/unbound/services/outside_network.c b/usr.sbin/unbound/services/outside_network.c
index 2a219cbc6e9..12923f07d78 100644
--- a/usr.sbin/unbound/services/outside_network.c
+++ b/usr.sbin/unbound/services/outside_network.c
@@ -550,7 +550,6 @@ reuse_tcp_find(struct outside_network* outnet, struct sockaddr_storage* addr,
log_assert(&key_p.reuse != (struct reuse_tcp*)result);
log_assert(&key_p != ((struct reuse_tcp*)result)->pending);
}
- /* not found, return null */
/* It is possible that we search for something before the first element
* in the tree. Replace a null pointer with the first element.
@@ -560,6 +559,7 @@ reuse_tcp_find(struct outside_network* outnet, struct sockaddr_storage* addr,
result = rbtree_first(&outnet->tcp_reuse);
}
+ /* not found, return null */
if(!result || result == RBTREE_NULL)
return NULL;