r1162 - in branches/1.0: . bin/varnishncsa

des at projects.linpro.no des at projects.linpro.no
Wed Oct 18 16:26:46 CEST 2006


Author: des
Date: 2006-10-18 16:26:46 +0200 (Wed, 18 Oct 2006)
New Revision: 1162

Modified:
   branches/1.0/
   branches/1.0/bin/varnishncsa/varnishncsa.c
Log:
 r31754 at cat (orig r1123):  andersb | 2006-09-24 19:14:28 +0200
 Fixed: Correctly logging "-" when there is no User-Agent or Referer.
 
 Note: Still builds with warning.
 
 



Property changes on: branches/1.0
___________________________________________________________________
Name: svk:merge
   - d4fa192b-c00b-0410-8231-f00ffab90ce4:/trunk/varnish-cache:1122
   + d4fa192b-c00b-0410-8231-f00ffab90ce4:/trunk/varnish-cache:1123

Modified: branches/1.0/bin/varnishncsa/varnishncsa.c
===================================================================
--- branches/1.0/bin/varnishncsa/varnishncsa.c	2006-10-18 14:26:45 UTC (rev 1161)
+++ branches/1.0/bin/varnishncsa/varnishncsa.c	2006-10-18 14:26:46 UTC (rev 1162)
@@ -198,11 +198,18 @@
 		free(lp->df_R);
 		lp->df_R = NULL;
 	}
+	else {
+	        fprintf(fo, " \"-\"");
+				        }
+
 	if (lp->df_U != NULL) {
 		fprintf(fo, " \"%s\"", lp->df_U);
 		free(lp->df_U);
 		lp->df_U = NULL;
 	}
+	else {
+		fprintf(fo, " \"-\"");
+	}
 	fprintf(fo, "\n");
 
 	return (0);




More information about the varnish-commit mailing list