]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix comparison to help static analyzer.
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Wed, 20 Nov 2024 09:53:45 +0000 (10:53 +0100)
committerYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Wed, 20 Nov 2024 09:53:45 +0000 (10:53 +0100)
doc/Changelog
util/netevent.c

index c6f8d3c229645bc18e11d7c9034deb3ad09949ad..53074a9a95c94472506423f41280a63de7cb85e2 100644 (file)
@@ -1,3 +1,6 @@
+20 November 2024: Yorgos
+       - Fix comparison to help static analyzer.
+
 19 November 2024: Yorgos
        - Merge #1169 from Sergey Kacheev, fix: lock-free counters for
          auth_zone up/down queries.
index b36f00f1a2aa4f95fd31459dc465afa1ab4c812a..9181d3e4a90126cdb55d6f349815d2fa7d6f8023 100644 (file)
@@ -2845,6 +2845,7 @@ static int
 doq_lookup_conn_stream(struct comm_reply* repinfo, struct comm_point* c,
        struct doq_conn** conn, struct doq_stream** stream)
 {
+       log_assert(c->doq_socket);
        if(c->doq_socket->current_conn) {
                *conn = c->doq_socket->current_conn;
        } else {
@@ -6747,7 +6748,7 @@ comm_point_drop_reply(struct comm_reply* repinfo)
                reclaim_http_handler(repinfo->c);
                return;
 #ifdef HAVE_NGTCP2
-       } else if(repinfo->c->type == comm_doq) {
+       } else if(repinfo->c->doq_socket) {
                doq_socket_drop_reply(repinfo);
                return;
 #endif