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

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