Commit 40280ad3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use the correct target of sizeof().



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1556 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 939fa196
......@@ -80,7 +80,7 @@ TCP_myname(int sock, char *abuf, unsigned alen, char *pbuf, unsigned plen)
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);
}
......
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