]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix unwrapped adaptation code in rev.13528
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 12 Aug 2014 13:06:21 +0000 (06:06 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 12 Aug 2014 13:06:21 +0000 (06:06 -0700)
src/servers/FtpServer.cc

index b7e0e73b8b24f9acc8096505511e0a4f95b96dd1..3de0dbea1c2c9ee1768e9dd25db7424cfee455d2 100644 (file)
@@ -1013,6 +1013,7 @@ Ftp::Server::writeErrorReply(const HttpReply *reply, const int scode)
                   strerror(request->errDetail));
     }
 
+#if USE_ADAPTATION
     // XXX: Remove hard coded names. Use an error page template instead.
     const Adaptation::History::Pointer ah = request->adaptHistory();
     if (ah != NULL) { // XXX: add adapt::<all_h but use lastMeta here
@@ -1023,6 +1024,7 @@ Ftp::Server::writeErrorReply(const HttpReply *reply, const int scode)
         if (desc.size())
             mb.Printf("%i-Description: %s\r\n", scode, desc.termedBuf());
     }
+#endif
 
     assert(reply != NULL);
     const char *reason = reply->header.has(HDR_FTP_REASON) ?