Skip to content

Commit 6dd547a

Browse files
committed
Fix incorrect inspection failure check
1 parent a56b92d commit 6dd547a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dlhook.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static ObjectPltData get_object(const DlLinkMap* lmap) {
275275
ObjectPltData object{};
276276
if (it == obj_cache.end()) {
277277
object = inspect_object(lmap);
278-
if (object.plt_addr_base == 0U) {
278+
if (object.dynsym == nullptr) {
279279
return {};
280280
}
281281
obj_cache.emplace(lmap, object);

0 commit comments

Comments
 (0)