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

module_need: handle module loading error

parent 5604a589
......@@ -560,11 +560,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