Fix modules callback return.
When a modules callback returns we should return that status, not always return
ERROR_SUCCESS, because if the module callback failed for whatever reason we
should honor that.
@@ -183,12 +183,10 @@ int yr_modules_load(
}
}
- result = context->callback(
+ return context->callback(
CALLBACK_MSG_MODULE_IMPORTED,
module_structure,
context->user_data);
-
- return ERROR_SUCCESS;
}
