Blame SOURCES/autofs-5.1.0-fix-incorrect-round-robin-host-detection.patch

6bbd11
autofs-5.1.0 - fix incorrect round robin host detection
6bbd11
6bbd11
From: Ian Kent <raven@themaw.net>
6bbd11
6bbd11
6bbd11
---
6bbd11
 CHANGELOG            |    1 +
6bbd11
 modules/replicated.c |    2 +-
6bbd11
 2 files changed, 2 insertions(+), 1 deletion(-)
6bbd11
6bbd11
--- autofs-5.0.7.orig/CHANGELOG
6bbd11
+++ autofs-5.0.7/CHANGELOG
6bbd11
@@ -128,6 +128,7 @@
6bbd11
 - allow empty value in macro selectors.
6bbd11
 - add serialization to sasl init.
6bbd11
 - dont allocate dev_ctl_ops too early.
6bbd11
+- fix incorrect round robin host detection.
6bbd11
 
6bbd11
 25/07/2012 autofs-5.0.7
6bbd11
 =======================
6bbd11
--- autofs-5.0.7.orig/modules/replicated.c
6bbd11
+++ autofs-5.0.7/modules/replicated.c
6bbd11
@@ -946,7 +946,7 @@ try_name:
6bbd11
 	}
6bbd11
 
6bbd11
 	this = ni;
6bbd11
-	while (this->ai_next) {
6bbd11
+	while (this) {
6bbd11
 		if (this->ai_family == AF_INET) {
6bbd11
 			struct sockaddr_in *addr = (struct sockaddr_in *) this->ai_addr;
6bbd11
 			if (addr->sin_addr.s_addr != INADDR_LOOPBACK)