From d0015e22d0575a18ce71eecc13f727421387d986 Mon Sep 17 00:00:00 2001
From: Andreas Ziegler <andreas.ziegler@fau.de>
Date: Thu, 10 Feb 2022 12:36:13 +0100
Subject: [PATCH] store: fix hard search for imported functions

We made an indentation error in the extraction of the hard search
for imported symbols which lead to symbols not marked as found if
there was an exact match for the target name.

Fixes: cd3e8267d683 ("library, store, calls: partly handle dlsym")
---
 librarytrader/librarystore.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/librarytrader/librarystore.py b/librarytrader/librarystore.py
index 38d7154..e396f37 100644
--- a/librarytrader/librarystore.py
+++ b/librarytrader/librarystore.py
@@ -507,9 +507,9 @@ class LibraryStore(BaseStore):
                     target = {x.split('@@')[0] : val for x, val in other_lib.exported_names.items()}
                 else:
                     continue
-                target_lib = other_lib
-                target_addr = target[function]
-                break
+            target_lib = other_lib
+            target_addr = target[function]
+            break
         return target_lib, target_addr
 
     def resolve_functions(self, library, do_add=False):
-- 
GitLab