Sophie

Sophie

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

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

autofs-5.0.1 - fix null cache clean

From: Ian Kent <raven@themaw.net>

A function to clean the null map entry cache was added to
avoid a race when re-reading the master map. That function
mistakenly fails to clear the hash bucket array entries
which leads to a segmentation fault on the next null cache
lookup.
---

 lib/cache.c |    1 +
 1 file changed, 1 insertion(+)


--- autofs-5.0.1.orig/lib/cache.c
+++ autofs-5.0.1/lib/cache.c
@@ -251,6 +251,7 @@ void cache_clean_null_cache(struct mapen
 			free(me->key);
 			free(me);
 		}
+		mc->hash[i] = NULL;
 	}
 
 	return;