Commit e9abe831 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use sockaddr_storage also here.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1538 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4fe8a9da
......@@ -137,7 +137,8 @@ vca_acct(void *arg)
{
struct sess *sp;
socklen_t l;
struct sockaddr addr[2]; /* XXX: IPv6 hack */
struct sockaddr_storage addr_s;
struct sockaddr *addr;
int i, j;
struct pollfd *pfd;
struct listen_sock *ls;
......@@ -178,7 +179,8 @@ vca_acct(void *arg)
if (pfd[j].revents == 0)
continue;
VSL_stats->client_conn++;
l = sizeof addr;
l = sizeof addr_s;
addr = (void*)&addr_s;
i = accept(pfd[j].fd, addr, &l);
if (i < 0) {
if (errno != EAGAIN) {
......
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