]> granicus.if.org Git - apache/commitdiff
better check if c->cs is there at all
authorStefan Eissing <icing@apache.org>
Mon, 31 Aug 2015 16:41:41 +0000 (16:41 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 31 Aug 2015 16:41:41 +0000 (16:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700275 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_conn.c

index d83db748a9ada3524cf6b7b339805016ac836e7b..60c76b323b51a115a5de01f8fb2f1db3fe8f0627 100644 (file)
@@ -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;
 }