From: Evan Hunt Date: Mon, 27 Jul 2020 18:03:33 +0000 (-0700) Subject: initialize, rather than invalidating, new http buffers X-Git-Tag: v9.17.4~32^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=881b6351419eee62036ab80ba4f6d9ada503f3fc;p=thirdparty%2Fbind9.git initialize, rather than invalidating, new http buffers when building without ISC_BUFFER_USEINLINE (which is the default on Windows) an assertion failure could occur when setting up a new isc_httpd_t object for the statistics channel. --- diff --git a/lib/isc/httpd.c b/lib/isc/httpd.c index 2bd82da721d..1bb5ec7dac0 100644 --- a/lib/isc/httpd.c +++ b/lib/isc/httpd.c @@ -652,7 +652,7 @@ new_httpd(isc_httpdmgr_t *httpdmgr, isc_nmhandle_t *handle) { isc_buffer_initnull(&httpd->compbuffer); isc_buffer_clear(&httpd->compbuffer); - isc_buffer_invalidate(&httpd->bodybuffer); + isc_buffer_initnull(&httpd->bodybuffer); ISC_LINK_INIT(httpd, link);