]> git.pld-linux.org Git - packages/autofs.git/blame - autofs-5.0.4-fix-double-free-in-expire_proc.patch
- import latest patchset.
[packages/autofs.git] / autofs-5.0.4-fix-double-free-in-expire_proc.patch
CommitLineData
e5fd101c
PS
1autofs-5.0.4 - fix double free in expire_proc()
2
3From: Ian Kent <raven@themaw.net>
4
5In state.c:expire_proc() the function expire_proc_cleanup() is called
6which frees the parameter structure but automount frees this again in
7the following line.
8---
9
10 CHANGELOG | 1 +
11 daemon/state.c | 1 -
12 2 files changed, 1 insertions(+), 1 deletions(-)
13
14
15diff --git a/CHANGELOG b/CHANGELOG
16index 2cb35dc..8860b2c 100644
17--- a/CHANGELOG
18+++ b/CHANGELOG
19@@ -28,6 +28,7 @@
20 - add nfs mount protocol default configuration option.
21 - fix bad token declaration in master map parser.
22 - fix return start status on fail.
23+- fix double free in expire_proc().
24
25 4/11/2008 autofs-5.0.4
26 -----------------------
27diff --git a/daemon/state.c b/daemon/state.c
28index 606743b..417fde1 100644
29--- a/daemon/state.c
30+++ b/daemon/state.c
31@@ -298,7 +298,6 @@ static enum expire expire_proc(struct autofs_point *ap, int now)
32 error(ap->logopt,
33 "expire thread create for %s failed", ap->path);
34 expire_proc_cleanup((void *) ea);
35- free(ea);
36 return EXP_ERROR;
37 }
38 ap->exp_thread = thid;
This page took 1.161501 seconds and 4 git commands to generate.