summaryrefslogtreecommitdiffstats
path: root/lib/libelf/elf_strptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libelf/elf_strptr.c')
-rw-r--r--lib/libelf/elf_strptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libelf/elf_strptr.c b/lib/libelf/elf_strptr.c
index 04cc624..e137622 100644
--- a/lib/libelf/elf_strptr.c
+++ b/lib/libelf/elf_strptr.c
@@ -55,7 +55,7 @@ elf_strptr(Elf *e, size_t scndx, size_t offset)
gelf_getshdr(s, &shdr) == NULL)
return (NULL);
- if (shdr.sh_type != SHT_STRTAB ||
+ if (/*shdr.sh_type != SHT_STRTAB || */
offset >= shdr.sh_size) {
LIBELF_SET_ERROR(ARGUMENT, 0);
return (NULL);
OpenPOWER on IntegriCloud