]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug fix: The '%I' formating code in error page shows '[unknown]' in the case of SQUID...
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 29 Feb 2012 21:16:06 +0000 (23:16 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 29 Feb 2012 21:16:06 +0000 (23:16 +0200)
Update the server ip address and server hostname in HttpRequest::hier object
in the case of SQUID_X509_V_ERR_DOMAIN_MISMATCH error to be used for %I field
of the generated error page

src/client_side.cc

index 316ff3f8fb18e4728b45c9626e4ccac3085e0f91..f5e88637a5793f5f7c5855ecfe9872a7adfe4dd7 100644 (file)
@@ -2510,6 +2510,8 @@ bool ConnStateData::serveDelayedError(ClientSocketContext *context)
                 clientReplyContext *repContext = dynamic_cast<clientReplyContext *>(node->data.getRaw());
                 assert (repContext);
 
+                // Fill the server ip address and server hostname for use with ErrorState
+                request->hier.note(pinning.serverConnection, request->GetHost());
                 // Create an error object and fill it
                 ErrorState *err = new ErrorState(ERR_SECURE_CONNECT_FAIL, HTTP_SERVICE_UNAVAILABLE, request);