diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-09-29 15:34:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-09-29 15:34:53 (GMT) |
commit | 2de826110c85feb68d6e5b09c133e2300ae4c0d0 (patch) | |
tree | b3fad748a8e71e9b7f6b52fccc5dcaab36590f6b /plugins | |
parent | 522298cf50e67d92b0aa85a85177ed7c16b00e08 (diff) |
Fixed the access to connected clients from the Python API.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/pychrysalide/analysis/binary.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/pychrysalide/analysis/binary.c b/plugins/pychrysalide/analysis/binary.c index e97bea6..eb71a62 100644 --- a/plugins/pychrysalide/analysis/binary.c +++ b/plugins/pychrysalide/analysis/binary.c @@ -127,7 +127,7 @@ static PyObject *py_loaded_binary_new(PyTypeObject *type, PyObject *args, PyObje static PyObject *py_loaded_binary_get_client(PyObject *self, PyObject *args) { PyObject *result; /* Bilan à retourner */ - bool internal; /* Nature du client visé */ + int internal; /* Nature du client visé */ int ret; /* Bilan de lecture des args. */ GLoadedBinary *binary; /* Binaire en cours d'analyse */ GHubClient *client; /* Eventuel client en place */ @@ -140,6 +140,8 @@ static PyObject *py_loaded_binary_get_client(PyObject *self, PyObject *args) " if defined, or return None otherwise.\n" \ ) + internal = 1; + ret = PyArg_ParseTuple(args, "|p", &internal); if (!ret) return NULL; |