[Bug 1194310] Re: cachemgr.cgi crashes after login
Troy Dack
1194310 at bugs.launchpad.net
Sun Sep 8 11:53:01 UTC 2013
This appears to have been fixed in Debian nearly six months ago ...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701123
The fix is at: http://www.squid-
cache.org/Versions/v3/3.1/changesets/squid-3.1-10486.patch
Here's the patch, applies cleanly against squid3-3.1.20-1ubuntu3
--- a/tools/cachemgr.cc
+++ b/tools/cachemgr.cc
@@ -1162,7 +1162,6 @@
{
static char buf[1024];
size_t stringLength = 0;
- const char *str64;
if (!req->passwd)
return "";
@@ -1171,15 +1170,12 @@
req->user_name ? req->user_name : "",
req->passwd);
- str64 = base64_encode(buf);
-
- stringLength += snprintf(buf, sizeof(buf), "Authorization: Basic %s\r\n", str64);
+ stringLength += snprintf(buf, sizeof(buf), "Authorization: Basic %s\r\n", base64_encode(buf));
assert(stringLength < sizeof(buf));
- snprintf(&buf[stringLength], sizeof(buf) - stringLength, "Proxy-Authorization: Basic %s\r\n", str64);
+ snprintf(&buf[stringLength], sizeof(buf) - stringLength, "Proxy-Authorization: Basic %s\r\n", base64_encode(buf));
- xxfree(str64);
return buf;
}
** Bug watch added: Debian Bug tracker #701123
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701123
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid3 in Ubuntu.
https://bugs.launchpad.net/bugs/1194310
Title:
cachemgr.cgi crashes after login
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1194310/+subscriptions
More information about the Ubuntu-server-bugs
mailing list