Sophie

Sophie

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

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

autofs-5.0.3 - fix ifc buff size fix

From: Ian Kent <raven@themaw.net>

Correct setting of beffer size in alloc_ifreq().
---

 modules/replicated.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


--- autofs-5.0.1.orig/modules/replicated.c
+++ autofs-5.0.1/modules/replicated.c
@@ -108,7 +108,7 @@ static int alloc_ifreq(struct ifconf *if
 			return 0;
 		}
 
-		ifc->ifc_len = sizeof(buf);
+		ifc->ifc_len = len;
 		ifc->ifc_req = (struct ifreq *) buf;
 
 		ret = ioctl(sock, SIOCGIFCONF, ifc);