]> git.ipfire.org Git - thirdparty/bind9.git/commit
Properly handle ISC_R_SHUTTINGDOWN in resquery_response()
authorOndřej Surý <ondrej@isc.org>
Thu, 23 Mar 2023 09:48:39 +0000 (10:48 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 23 Mar 2023 11:26:09 +0000 (12:26 +0100)
commit4bf253ffe16a9efb6dcd7fb6e52a00a96583ffc1
tree913fc0aac563104c445b1661e54998e6937e7047
parent616920d4b2c1b7ec894a0f1519d824a99da5b3cf
Properly handle ISC_R_SHUTTINGDOWN in resquery_response()

When resquery_response() was called with ISC_R_SHUTTINDOWN, the region
argument would be NULL, but rctx_respinit() would try to pass
region->base and region->len to the isc_buffer_init() leading to
a NULL pointer dereference.  Properly handle non-ISC_R_SUCCESS by
ignoring the provided region.

(cherry picked from commit 93259812ddcb8dbc38c2f494465c74715893cbb4)
lib/dns/resolver.c