]> git.ipfire.org Git - thirdparty/unbound.git/commit
#420 517/head
authordaiyunwei <daiyunwei@fnic.cn>
Tue, 3 Aug 2021 03:40:30 +0000 (11:40 +0800)
committerdaiyunwei <daiyunwei@fnic.cn>
Tue, 3 Aug 2021 03:40:30 +0000 (11:40 +0800)
commit0784ad7a1185c3f2852e6d44308c06409e05f0d5
treefbbc76bfa3726a25a99c189a6c262fd8f983d6dc
parent3ed5b62578809b5d891045b1cb9b5196d0f86a92
#420

clear the c->buffer in the comm_point_send_reply does resolve the "can't fit qbuffer in c->buffer" issue, but it breaks the mesh reply list function that need to reuse the answer. because the c->buffer is cleared in the comm_point_send_reply, it cannot be resued again. it means that it is not inappropriate to clear c->buffer in the comm_point_send_reply.

After some investigation, i found it is appropriate to clear c->buffer before use in the http2_query_read_done.
services/listen_dnsport.c
util/netevent.c