plugins/python/python_plugin_common: close can get custom arguments
For the audit plugin. Ensure we do not fail if plugin_ctx->py_instance is NULL (because plugin init has failed).
This commit is contained in:

committed by
Todd C. Miller

parent
a7eb9d3412
commit
36694fce86
@@ -44,8 +44,8 @@ void python_plugin_deinit(struct PluginContext *plugin_ctx);
|
||||
int python_plugin_show_version(struct PluginContext *plugin_ctx,
|
||||
const char *python_callback_name, int isVerbose);
|
||||
|
||||
void python_plugin_close(struct PluginContext *plugin_ctx, const char *python_callback_name,
|
||||
int exit_status, int error);
|
||||
void python_plugin_close(struct PluginContext *plugin_ctx, const char *callback_name,
|
||||
PyObject *py_args);
|
||||
|
||||
CPYCHECKER_STEALS_REFERENCE_TO_ARG(3)
|
||||
PyObject *python_plugin_api_call(struct PluginContext *plugin_ctx,
|
||||
|
Reference in New Issue
Block a user