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:
Robert Manner
2020-02-06 15:15:12 +01:00
committed by Todd C. Miller
parent a7eb9d3412
commit 36694fce86
4 changed files with 23 additions and 13 deletions

View File

@@ -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,