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

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