Blame SOURCES/squid-3.5.20-tunnel-sigsegv.patch

1e190c
diff -up ./src/tunnel.cc.orig ./src/tunnel.cc
1e190c
--- ./src/tunnel.cc.orig	2016-07-01 13:37:50.000000000 +0200
1e190c
+++ ./src/tunnel.cc	2016-07-15 16:25:07.132823875 +0200
1e190c
@@ -475,7 +475,9 @@ TunnelStateData::handleConnectResponse(c
1e190c
     *status_ptr = rep.sline.status();
1e190c
 
1e190c
     // we need to relay the 401/407 responses when login=PASS(THRU)
1e190c
-    const char *pwd = server.conn->getPeer()->login;
1e190c
+    CachePeer *peer = server.conn->getPeer();
1e190c
+    const char *pwd = (peer) ? peer->login : NULL;
1e190c
+
1e190c
     const bool relay = pwd && (strcmp(pwd, "PASS") != 0 || strcmp(pwd, "PASSTHRU") != 0) &&
1e190c
                        (*status_ptr == Http::scProxyAuthenticationRequired ||
1e190c
                         *status_ptr == Http::scUnauthorized);