s/hook/method

This commit is contained in:
Joris Vink 2019-10-04 11:34:49 +02:00
parent b0cf42726d
commit 6c8970651c
1 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ kore_python_seccomp_hook(const char *method)
struct kore_runtime *rt;
PyObject *func, *result;
if ((func = kore_module_getsym(hook, &rt)) == NULL)
if ((func = kore_module_getsym(method, &rt)) == NULL)
return;
if (rt->type != KORE_RUNTIME_PYTHON)
@ -506,7 +506,7 @@ kore_python_seccomp_hook(const char *method)
result = PyObject_CallFunctionObjArgs(func,
(PyObject *)py_seccomp, NULL);
kore_python_log_error(hook);
kore_python_log_error(method);
kore_seccomp_filter("koreapp", py_seccomp->filters, py_seccomp->elm);