]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
initialize, rather than invalidating, new http buffers
authorEvan Hunt <each@isc.org>
Mon, 27 Jul 2020 18:03:33 +0000 (11:03 -0700)
committerEvan Hunt <each@isc.org>
Mon, 27 Jul 2020 21:29:37 +0000 (14:29 -0700)
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.

lib/isc/httpd.c

index 2bd82da721df9feb98de1e8e78ea992e2447fb4b..1bb5ec7dac0afa53ea2c928506278d0b38d02861 100644 (file)
@@ -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);