Commit ac97f9c0 authored by Petri Hintukainen's avatar Petri Hintukainen

bd_open(): return NULL if disc root is NULL

Fixes crash when disc files are accessed later.
parent dd5e6327
......@@ -1461,7 +1461,10 @@ BLURAY *bd_open(const char *device_path, const char *keyfile_path)
return NULL;
}
bd_open_disc(bd, device_path, keyfile_path);
if (!bd_open_disc(bd, device_path, keyfile_path)) {
bd_close(bd);
return NULL;
}
return bd;
}
......
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