summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-23 00:05:51 +0100
committerMichael Adam <obnox@samba.org>2013-11-23 00:17:55 +0100
commitb92d70be0747c8157c9d881a64bcea5547b228f9 (patch)
treeaffd0f651d63ee1ac45d68488ae952494f851901
parent3710accf72e621fa97de20026f59069391d8c9d7 (diff)
downloadtinyproxy-b92d70be0747c8157c9d881a64bcea5547b228f9.tar.gz
tinyproxy-b92d70be0747c8157c9d881a64bcea5547b228f9.zip
child: remove use of config.listen_addrs in child_listening_sockets()
This was accidentially used instead of the function parameter listen_addrs This still belongs to the fix for bug BB#63. Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to '')
-rw-r--r--src/child.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/child.c b/src/child.c
index da82139..fefffa6 100644
--- a/src/child.c
+++ b/src/child.c
@@ -556,7 +556,7 @@ int child_listening_sockets(vector_t listen_addrs, uint16_t port)
}
if ((listen_addrs == NULL) ||
- (vector_length(config.listen_addrs) == 0))
+ (vector_length(listen_addrs) == 0))
{
/*
* no Listen directive:
@@ -566,10 +566,10 @@ int child_listening_sockets(vector_t listen_addrs, uint16_t port)
return ret;
}
- for (i = 0; i < vector_length(config.listen_addrs); i++) {
+ for (i = 0; i < vector_length(listen_addrs); i++) {
const char *addr;
- addr = (char *)vector_getentry(config.listen_addrs, i, NULL);
+ addr = (char *)vector_getentry(listen_addrs, i, NULL);
if (addr == NULL) {
log_message(LOG_WARNING,
"got NULL from listen_addrs - skipping");