diff options
author | Ian Kent <raven@themaw.net> | 2016-01-18 18:23:05 +0800 |
---|---|---|
committer | Ian Kent <raven@themaw.net> | 2016-01-18 18:23:05 +0800 |
commit | aa8d23043fc7023c78e1a3fc8d5ab6f4ba045864 (patch) | |
tree | 932c8a9f812753a76b77b812ed2f28de084da1de /modules | |
parent | 2267b88e067e44ba6959bba1f5beefdc35e370ee (diff) | |
download | autofs-aa8d23043fc7023c78e1a3fc8d5ab6f4ba045864.tar.gz |
autofs-5.1.1 - fix use after free in sun parser parse_init()
Change to free context in function it was allocated (parse_init) on
error to avoid use after free.
Signed-off-by: Ian Kent <raven@themaw.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/parse_sun.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/parse_sun.c b/modules/parse_sun.c index a164fba6..a9689f08 100644 --- a/modules/parse_sun.c +++ b/modules/parse_sun.c @@ -345,7 +345,6 @@ static int do_init(int argc, const char *const *argv, struct parse_context *ctxt } if (!noptstr) { char *estr = strerror_r(errno, buf, MAX_ERR_BUF); - kill_context(ctxt); logerr(MODPREFIX "%s", estr); return 1; } |