]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix misplaced comment.
authorGeorge Thessalonikefs <yorgos@nlnetlabs.nl>
Mon, 2 Oct 2023 14:13:23 +0000 (16:13 +0200)
committerGeorge Thessalonikefs <yorgos@nlnetlabs.nl>
Mon, 2 Oct 2023 14:13:23 +0000 (16:13 +0200)
doc/Changelog
services/outside_network.c

index 9b3ccf8ea8266cc6db3efe3dccb5cf95e020cb17..cc79cc3c8ed5b9851b8b50c28342ac47516f1929 100644 (file)
@@ -1,3 +1,6 @@
+2 October 2023: George
+       - Fix misplaced comment.
+
 22 September 2023: Wouter
        - Fix #942: 1.18.0 libunbound DNS regression when built without
          OpenSSL.
index 2a219cbc6e9274c01cd4ebc73004ede2b5c56659..12923f07d788ac34fc110a66df04cfc50ac1a07a 100644 (file)
@@ -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;