r1556 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Jun 25 11:23:14 CEST 2007


Author: phk
Date: 2007-06-25 11:23:14 +0200 (Mon, 25 Jun 2007)
New Revision: 1556

Modified:
   trunk/varnish-cache/bin/varnishd/tcp.c
Log:
Use the correct target of sizeof().



Modified: trunk/varnish-cache/bin/varnishd/tcp.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/tcp.c	2007-06-25 09:20:02 UTC (rev 1555)
+++ trunk/varnish-cache/bin/varnishd/tcp.c	2007-06-25 09:23:14 UTC (rev 1556)
@@ -80,7 +80,7 @@
 	struct sockaddr	*addr = (void*)&addr_s;
 	socklen_t l;
 
-	l = sizeof addr;
+	l = sizeof addr_s;
 	AZ(getsockname(sock, addr, &l));
 	TCP_name(addr, l, abuf, alen, pbuf, plen);
 }




More information about the varnish-commit mailing list