diff -ruN httpd-2.4.51.org/server/connection.c httpd-2.4.51/server/connection.c --- httpd-2.4.51.org/server/connection.c 2021-09-26 08:11:22.000000000 -0600 +++ httpd-2.4.51/server/connection.c 2021-10-09 13:03:10.908773670 -0600 @@ -156,7 +156,9 @@ apr_socket_t *csd = ap_get_conn_socket(c); if (ap_start_lingering_close(c)) { - apr_socket_close(csd); + if (csd) { + apr_socket_close(csd); + } return; }