]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix ASAN error in DoH (passing NULL to memmove())
authorArtem Boldariev <artem@boldariev.com>
Mon, 14 Jun 2021 20:25:03 +0000 (23:25 +0300)
committerArtem Boldariev <artem@boldariev.com>
Wed, 16 Jun 2021 14:46:10 +0000 (17:46 +0300)
commitdc356bb1965161e6e293a2b4ef0ec6b0fa33de51
tree0d1fb6880937ce9a646bf84871557b6f4f31316d
parent629d8a30966d861843339565ee5dad8e25286456
Fix ASAN error in DoH (passing NULL to memmove())

The warning was produced by an ASAN build:

runtime error: null pointer passed as argument 2, which is declared to
never be null

This commit fixes it by checking if nghttp2_session_mem_send() has
actually returned anything.
lib/isc/netmgr/http.c