diff options
author | Ian Kent <raven@themaw.net> | 2018-10-15 08:48:51 +0800 |
---|---|---|
committer | Ian Kent <raven@themaw.net> | 2018-10-15 10:11:59 +0800 |
commit | dc7ee374da47b0a07a260cd6900e8de580ec2b82 (patch) | |
tree | 006a4a393180d9570c18bee70639443300a4c0aa /modules | |
parent | 5e4e619fde78392b83e60017fca267a2f44a61cc (diff) | |
download | autofs-dc7ee374da47b0a07a260cd6900e8de580ec2b82.tar.gz |
autofs-5.1.4 - fix possible NULL pointer dereference in get_defaults_entry()
Function select_default_entry() can call make_default_entry() so a NULL
return is possible.
Signed-off-by: Ian Kent <raven@themaw.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/parse_amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/parse_amd.c b/modules/parse_amd.c index 627c3c00..7399d19e 100644 --- a/modules/parse_amd.c +++ b/modules/parse_amd.c @@ -1998,7 +1998,7 @@ static struct amd_entry *get_defaults_entry(struct autofs_point *ap, goto out; } entry = select_default_entry(ap, &dflts, sv); - if (!entry->map_type) { + if (entry && !entry->map_type) { /* * If map type isn't given try to inherit from * parent. A NULL map type is valid and means |