]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
*) core: Be safe with ap_lingering_close() called with a socket NULL-ed.
authorYann Ylavic <ylavic@apache.org>
Tue, 12 Oct 2021 16:48:18 +0000 (16:48 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 12 Oct 2021 16:48:18 +0000 (16:48 +0000)
commit59b7c104ce06c90be20ff50435d912a444341245
treeba4b51a8953af2aa6c0035bfc50c65a7b0ec3d1f
parent17471dfb938c7e20681783939a147d433b468864
*) core: Be safe with ap_lingering_close() called with a socket NULL-ed.

PR 65627.

mod_itk seems to:
  ap_set_core_module_config(c->conn_config, NULL)
before calling ap_lingering_close(), causing a crash after r1891721.
Until we have an API to no-op ap_lingering_close(), let's be safe.

* server/connection.c(ap_start_lingering_close):
  The socket should not be NULL here, add an assertion.

* server/connection.c(ap_lingering_close):
  Set c->aborted if the socket is NULL, and give up.

Submitted by: acmondor <bz.apache.org acmondor.ca>, ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894171 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/ap_lingering_close-NULL.txt [new file with mode: 0644]
server/connection.c