Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 130701790bf2d95e902edf16031ff596 > files > 179

autofs-5.0.1-0.rc2.164.el5_8.src.rpm

diff --git a/CHANGELOG b/CHANGELOG
index 07c8e96..784a648 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,6 +4,7 @@
 - fix include check full patch for file map of same name.
 - fix cache entrys not being cleaned up on submount expire.
 - fix LDAP lookup delete cache entry only if entry doesn't exist. 
+- add missing socket close in replicated host check (Jeff Moyer).
 
 1/9/2006 autofs-5.0.1 rc2
 -------------------------
diff --git a/modules/replicated.c b/modules/replicated.c
index 7558383..9336cf8 100644
--- a/modules/replicated.c
+++ b/modules/replicated.c
@@ -149,6 +149,7 @@ static unsigned int get_proximity(const 
 			if (ret == -1) {
 				char *estr = strerror_r(errno, buf, MAX_ERR_BUF);
 				error(LOGOPT_ANY, "ioctl: %s", estr);
+				close(sock);
 				return PROXIMITY_ERROR;
 			}