diff options
author | Libor Peltan <libor.peltan@nic.cz> | 2023-08-23 17:12:07 +0200 |
---|---|---|
committer | Libor Peltan <libor.peltan@nic.cz> | 2023-08-23 17:12:07 +0200 |
commit | 44381de5df069575512933cf33b981ea17538959 (patch) | |
tree | 345e0ece1c4047c7e3a04311ff06a109ba07cc6f /src/libknot/quic/quic_conn.c | |
parent | kdig/json/edns: bugfix / tiny refactoring (diff) | |
download | knot-44381de5df069575512933cf33b981ea17538959.tar.xz knot-44381de5df069575512933cf33b981ea17538959.zip |
tiny fixes from clang analyzer
Diffstat (limited to 'src/libknot/quic/quic_conn.c')
-rw-r--r-- | src/libknot/quic/quic_conn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libknot/quic/quic_conn.c b/src/libknot/quic/quic_conn.c index 8f07d1932..309337b3b 100644 --- a/src/libknot/quic/quic_conn.c +++ b/src/libknot/quic/quic_conn.c @@ -452,6 +452,7 @@ void knot_quic_stream_ack_data(knot_quic_conn_t *conn, int64_t stream_id, knot_quic_obuf_t *first; while (!EMPTY_LIST(*obs) && end_acked >= (first = HEAD(*obs))->len + s->first_offset) { rem_node((node_t *)first); + assert(HEAD(*obs) != first); // help CLANG analyzer understand what rem_node did and that further usage of HEAD(*obs) is safe s->obufs_size -= first->len; conn->obufs_size -= first->len; conn->quic_table->obufs_size -= first->len; |