]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- stream reuse, move log_assert to the correct location.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Fri, 23 Jul 2021 18:51:14 +0000 (20:51 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Fri, 23 Jul 2021 18:51:14 +0000 (20:51 +0200)
services/outside_network.c

index 8c0d3200ab5dc14da8a939b8a8b439a02d085384..340489ba9f1b5874593c2aba1ac175cff83ae0e8 100644 (file)
@@ -1044,8 +1044,8 @@ decommission_pending_tcp(struct outside_network* outnet,
        if(outnet->tcp_free != pend) {
                pend->next_free = outnet->tcp_free;
                outnet->tcp_free = pend;
+               log_assert(outnet->tcp_free->next_free != outnet->tcp_free);
        }
-       log_assert(outnet->tcp_free->next_free != outnet->tcp_free);
        if(pend->reuse.node.key) {
                /* needs unlink from the reuse tree to get deleted */
                reuse_tcp_remove_tree_list(outnet, &pend->reuse);