Commit f9af1a44 authored by Max Kellermann's avatar Max Kellermann

input/archive: check for archive_file_open() errors

This fixes a NULL pointer dereference in case of archive plugin failure.
parent 0bc8c0c1
......@@ -62,6 +62,8 @@ input_archive_open(struct input_stream *is, const char *pathname,
}
file = archive_file_open(arplug, archive);
if (file == NULL)
return false;
//setup fileops
opened = archive_file_open_stream(file, is, filename, error_r);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment