]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4455: SegFault from ESIInclude::Start
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 6 May 2016 09:14:45 +0000 (21:14 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 6 May 2016 09:14:45 +0000 (21:14 +1200)
src/client_side_request.cc

index a64c7dfeba5fbf1c096e03092c1fa1146e5c78ea..6d3c308e41422e575f514d8195177923b0a823c1 100644 (file)
@@ -177,7 +177,9 @@ ClientHttpRequest::ClientHttpRequest(ConnStateData * aConn) :
     start_time = current_time;
     setConn(aConn);
     al = new AccessLogEntry;
-    al->tcpClient = clientConnection = aConn->clientConnection;
+    if (aConn) {
+        al->tcpClient = clientConnection = aConn->clientConnection;
+    }
     dlinkAdd(this, &active, &ClientActiveRequests);
 #if USE_ADAPTATION
     request_satisfaction_mode = false;