1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 01UPSTREAM_autofs-5.0.4-fix-double-free-in-expire_proc.patch
4
## DP: Upstream patch on top of 5.0.4.
7
autofs-5.0.4 - fix double free in expire_proc()
9
From: Ian Kent <raven@themaw.net>
11
In state.c:expire_proc() the function expire_proc_cleanup() is called
12
which frees the parameter structure but automount frees this again in
18
2 files changed, 1 insertions(+), 1 deletions(-)
21
diff --git a/CHANGELOG b/CHANGELOG
22
index 2cb35dc..8860b2c 100644
26
- add nfs mount protocol default configuration option.
27
- fix bad token declaration in master map parser.
28
- fix return start status on fail.
29
+- fix double free in expire_proc().
31
4/11/2008 autofs-5.0.4
32
-----------------------
33
diff --git a/daemon/state.c b/daemon/state.c
34
index 606743b..417fde1 100644
37
@@ -298,7 +298,6 @@ static enum expire expire_proc(struct autofs_point *ap, int now)
39
"expire thread create for %s failed", ap->path);
40
expire_proc_cleanup((void *) ea);
44
ap->exp_thread = thid;