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