From b92d70be0747c8157c9d881a64bcea5547b228f9 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 23 Nov 2013 00:05:51 +0100 Subject: 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 --- src/child.c | 6 +++--- 1 file 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"); -- cgit v1.2.3