You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2015/08/31 18:41:41 UTC

svn commit: r1700275 - /httpd/httpd/trunk/modules/http2/h2_conn.c

Author: icing
Date: Mon Aug 31 16:41:41 2015
New Revision: 1700275

URL: http://svn.apache.org/r1700275
Log:
better check if c->cs is there at all

Modified:
    httpd/httpd/trunk/modules/http2/h2_conn.c

Modified: httpd/httpd/trunk/modules/http2/h2_conn.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_conn.c?rev=1700275&r1=1700274&r2=1700275&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/h2_conn.c (original)
+++ httpd/httpd/trunk/modules/http2/h2_conn.c Mon Aug 31 16:41:41 2015
@@ -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;
 }