Commit 216d33a1 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

r31755@cat (orig r1124): andersb | 2006-09-24 19:59:00 +0200

 Fixed: Compiles correctly, but has a 128 char long maximum for Remote Username.
 
 
 


git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1163 d4fa192b-c00b-0410-8231-f00ffab90ce4
parents d1cefbed 7e0a3fe4
......@@ -91,6 +91,7 @@ extended_log_format(void *priv, unsigned tag, unsigned fd, unsigned len, unsigne
unsigned lu;
struct tm tm;
char tbuf[40];
char rubuf[128];
struct logline *lp;
if (!(spec &VSL_S_CLIENT))
......@@ -177,11 +178,13 @@ extended_log_format(void *priv, unsigned tag, unsigned fd, unsigned len, unsigne
if (lp->df_RU != NULL){
base64_init();
lu = sizeof lp->df_RU;
base64_decode(lp->df_RU, &lu, lp->df_RU);
q = strchr(lp->df_RU, ':');
*q = '\0';
fprintf(fo, " %s", lp->df_RU);
lu = sizeof rubuf;
base64_decode(rubuf, lu, lp->df_RU);
q = strchr(rubuf, ':');
if (q != NULL){
*q = '\0';
}
fprintf(fo, " %s", rubuf);
free(lp->df_RU);
lp->df_RU = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment