Commit 4c9e1a93 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix corner case crash on corrupt plugin with callbacks

parent df72d5e5
......@@ -492,6 +492,8 @@ static int AllocatePluginFile (module_bank_t *bank, const char *abspath,
/* !unloadable not allowed for plugins with callbacks */
vlc_module_destroy (module);
module = module_InitDynamic (bank->obj, abspath, false);
if (unlikely(module == NULL))
return -1;
break;
}
......
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