From 3b807bafc4a8d7a3415668e95d44a0e8c4a46f30 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 31 Aug 2015 16:41:41 +0000 Subject: [PATCH] better check if c->cs is there at all git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700275 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_conn.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/http2/h2_conn.c b/modules/http2/h2_conn.c index d83db748a9..60c76b323b 100644 --- a/modules/http2/h2_conn.c +++ b/modules/http2/h2_conn.c @@ -177,8 +177,10 @@ apr_status_t h2_conn_main(conn_rec *c) status = h2_session_process(session); - /* Make sure this connection gets cleaned up properly. */ - c->cs->state = CONN_STATE_LINGER; + if (c->cs) { + /* Make sure this connection gets cleaned up properly. */ + c->cs->state = CONN_STATE_LINGER; + } return status; } -- 2.40.0