summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-09-29 15:34:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-09-29 15:34:53 (GMT)
commit2de826110c85feb68d6e5b09c133e2300ae4c0d0 (patch)
treeb3fad748a8e71e9b7f6b52fccc5dcaab36590f6b /src/analysis
parent522298cf50e67d92b0aa85a85177ed7c16b00e08 (diff)
Fixed the access to connected clients from the Python API.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/binary.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index 05e42c7..fb715bb 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -973,7 +973,10 @@ GHubClient *g_loaded_binary_get_client(const GLoadedBinary *binary, bool interna
{
GHubClient *result; /* Instance à retourner */
- result = binary->local;
+ if (internal)
+ result = binary->local;
+ else
+ result = binary->remote;
if (result != NULL)
g_object_ref(G_OBJECT(result));