autofs-5.0.9 - fix incorrect round robin host detection From: Ian Kent --- CHANGELOG | 1 + modules/replicated.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 76e8a13..943032c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,6 +8,7 @@ - add serialization to sasl init. - dont allocate dev_ctl_ops too early. - fix race accessing qdn in get_query_dn(). +- fix incorrect round robin host detection. 28/03/2014 autofs-5.0.9 ======================= diff --git a/modules/replicated.c b/modules/replicated.c index d43f778..1328ad3 100644 --- a/modules/replicated.c +++ b/modules/replicated.c @@ -1143,7 +1143,7 @@ try_name: } this = ni; - while (this->ai_next) { + while (this) { if (this->ai_family == AF_INET) { struct sockaddr_in *addr = (struct sockaddr_in *) this->ai_addr; if (addr->sin_addr.s_addr != INADDR_LOOPBACK)