aboutsummaryrefslogtreecommitdiffstats
path: root/libelf/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/common.h')
-rw-r--r--libelf/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libelf/common.h b/libelf/common.h
index 744f1bb8..62486903 100644
--- a/libelf/common.h
+++ b/libelf/common.h
@@ -56,7 +56,7 @@ determine_kind (void *buf, size_t len)
if (eclass > ELFCLASSNONE && eclass < ELFCLASSNUM
&& data > ELFDATANONE && data < ELFDATANUM
- && version > EV_NONE && version < EV_NUM)
+ && version == EV_CURRENT)
return ELF_K_ELF;
}