r1624 - trunk/varnish-cache/bin/varnishreplay

cecilihf at projects.linpro.no cecilihf at projects.linpro.no
Tue Jul 3 11:20:51 CEST 2007


Author: cecilihf
Date: 2007-07-03 11:20:50 +0200 (Tue, 03 Jul 2007)
New Revision: 1624

Modified:
   trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
Log:
Use strcmp instead of strncmp


Modified: trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
===================================================================
--- trunk/varnish-cache/bin/varnishreplay/varnishreplay.c	2007-07-03 09:09:55 UTC (rev 1623)
+++ trunk/varnish-cache/bin/varnishreplay/varnishreplay.c	2007-07-03 09:20:50 UTC (rev 1624)
@@ -522,7 +522,7 @@
 			 * When the request is sent, call the function for receiving
 			 * the answer.
 			 */
-			if (!(strncmp(df_m, "GET", 3) && strncmp(df_m, "HEAD", 4))) {
+			if (!(strcmp(df_m, "GET") && strcmp(df_m, "HEAD"))) {
 				if (reopen)
 					sock = VSS_connect(addr_info);
 				reopen = 0;




More information about the varnish-commit mailing list