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>
(cherry picked from commit b92d70be07)
This commit is contained in:
Michael Adam 2013-11-23 00:05:51 +01:00
parent 5054b9b80f
commit 54244661f7

View File

@ -556,7 +556,7 @@ int child_listening_sockets(vector_t listen_addrs, uint16_t port)
} }
if ((listen_addrs == NULL) || if ((listen_addrs == NULL) ||
(vector_length(config.listen_addrs) == 0)) (vector_length(listen_addrs) == 0))
{ {
/* /*
* no Listen directive: * no Listen directive:
@ -566,10 +566,10 @@ int child_listening_sockets(vector_t listen_addrs, uint16_t port)
return ret; return ret;
} }
for (i = 0; i < vector_length(config.listen_addrs); i++) { for (i = 0; i < vector_length(listen_addrs); i++) {
const char *addr; const char *addr;
addr = (char *)vector_getentry(config.listen_addrs, i, NULL); addr = (char *)vector_getentry(listen_addrs, i, NULL);
if (addr == NULL) { if (addr == NULL) {
log_message(LOG_WARNING, log_message(LOG_WARNING,
"got NULL from listen_addrs - skipping"); "got NULL from listen_addrs - skipping");