]> git.ipfire.org Git - thirdparty/unbound.git/commit
Update netevent.c
authoryunwei <37897161+dyunwei@users.noreply.github.com>
Wed, 20 Jan 2021 06:12:51 +0000 (14:12 +0800)
committerGitHub <noreply@github.com>
Wed, 20 Jan 2021 06:12:51 +0000 (14:12 +0800)
commit021550026146fa05adbc440dc172ea585ac24746
tree03c5bf583ba2d933ec144a544b27ba86d38b2376
parent9de4c398e1187ed9aa811a630aff676b2bdf01cf
Update netevent.c

#386
I found the root cause of this issue. r_buffer is r->query_reply.c->buffer, used to fill the reply in the mesh_send_reply function, then call comm_point_send_reply, and then call http2_submit_dns_response to send the DOH response. However, the buffer is not cleared after use. If the query length is greater than the last response length, the next dns query in the same H2 session will encounter an error.
This is bug!!!

Clear the buffer after use.
util/netevent.c