Commit 16735eb0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

module_need: handle module loading error

(cherry picked from commit b9513f3c)
parent 1e1bdefe
......@@ -565,11 +565,14 @@ found_shortcut:
{
module_t *p_new_module =
AllocatePlugin( p_this, p_real->psz_filename );
if( p_new_module )
{
CacheMerge( p_this, p_real, p_new_module );
DeleteModule( p_module_bank, p_new_module );
if( p_new_module == NULL )
{ /* Corrupted module */
msg_Err( p_this, "possibly corrupt module cache" );
module_release( p_cand );
continue;
}
CacheMerge( p_this, p_real, p_new_module );
DeleteModule( p_module_bank, p_new_module );
}
#endif
......
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