summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-07 10:54:56 +0100
committerMichael Adam <obnox@samba.org>2013-11-09 13:34:33 +0100
commit7eea1638bc881c4466367102919fe393b4ceb724 (patch)
treef3bc57b05c2402106b6246aee96fcf7eef426445 /configure.ac
parent4bbd6e8626475222b0aa37dde62d12d77667accb (diff)
downloadtinyproxy-7eea1638bc881c4466367102919fe393b4ceb724.tar.gz
tinyproxy-7eea1638bc881c4466367102919fe393b4ceb724.zip
sock/child: remove global variable addrlen.
This changes listen_sock() to not return the addrlen of the used address from getaddrinfo call to the caller, stored in global addrlen in child.c. This was only used to be able to allocate enough space for the arguments to the later accept call depending on whether IPv4 or IPv6 is used. This removes the need to pass this info by always allocating sizeof(struct sockaddr_storage) instead, which is enough to carry both sockaddr_in and sockaddr_in6. Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions