From: Stefan Eissing Date: Mon, 31 Aug 2015 16:41:41 +0000 (+0000) Subject: better check if c->cs is there at all X-Git-Tag: 2.5.0-alpha~2899 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b807bafc4a8d7a3415668e95d44a0e8c4a46f30;p=apache 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 --- 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; }