]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix error in rev.13447 "ssl_bump none" mode fixes.
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 6 Jun 2014 14:52:54 +0000 (17:52 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 6 Jun 2014 14:52:54 +0000 (17:52 +0300)
Fix to allow squid build when SSL is enabled

src/client_side.cc

index fb23f2ecd3cebc9afa2ae133795bcf83ab9a00f3..8d92fdd0a68872e772ec8d72720c559133f93158 100644 (file)
@@ -3627,7 +3627,8 @@ httpsSslBumpAccessCheckDone(allow_t answer, void *data)
         static char ip[MAX_IPSTRLEN];
         connState->clientConnection->local.toUrl(ip, sizeof(ip));
         // Pre-pend this fake request to the TLS bits already in the buffer
-        SBuf retStr("CONNECT ").append(ip).append(" HTTP/1.1\r\nHost: ").append(ip).append("\r\n\r\n");
+        SBuf retStr;
+        retStr.append("CONNECT ").append(ip).append(" HTTP/1.1\r\nHost: ").append(ip).append("\r\n\r\n");
         connState->in.buf = retStr.append(connState->in.buf);
         bool ret = connState->handleReadData();
         if (ret)