]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Better bookkeeping when reclaiming the TCP buffer. 612/head
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Tue, 25 Jan 2022 08:57:14 +0000 (09:57 +0100)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Tue, 25 Jan 2022 09:32:37 +0000 (10:32 +0100)
util/netevent.c

index 595e5dc805165451ebbb8cf068bfe3a7e92c0b25..b9b7230e41ae0dfe2968187c7492bb33c19bc34b 100644 (file)
@@ -1146,6 +1146,8 @@ reclaim_tcp_handler(struct comm_point* c)
        }
        c->tcp_more_read_again = NULL;
        c->tcp_more_write_again = NULL;
+       c->tcp_byte_count = 0;
+       sldns_buffer_clear(c->buffer);
 }
 
 /** do the callback when writing is done */