]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix for "Separate SSL error detail name and message" patch
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Sat, 14 May 2011 06:11:27 +0000 (09:11 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Sat, 14 May 2011 06:11:27 +0000 (09:11 +0300)
Use "#if USE_SSL / #endif" for printing . Currently we have error details
only for SSL related errors.

src/errorpage.cc

index 563f10af2445a85e3a65cd2cd699211cd75db830..1b266a4295f18aff7962f61994d2f2687401bd2f 100644 (file)
@@ -923,10 +923,13 @@ ErrorState::Convert(char token, bool building_deny_info_url, bool allowRecursion
         break;
 
     case 'x':
+#if USE_SSL
         if (detail)
             mb.Printf("%s", detail->errorName());
-        else if (!building_deny_info_url)
-            p = "[Unknown Error Code]";
+        else
+#endif
+            if (!building_deny_info_url)
+                p = "[Unknown Error Code]";
         break;
 
     case 'z':