aboutsummaryrefslogtreecommitdiff
path: root/lib/libelf/elf_strptr.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>2008-08-27 04:41:15 +0000
committerJohn Birrell <jb@FreeBSD.org>2008-08-27 04:41:15 +0000
commit144cd58d16b601d52d00c5a37c8e0226aa1ce55a (patch)
tree68b1ef675725b8c3e948b378d9af8296eb03b2e1 /lib/libelf/elf_strptr.c
parentacb7c381e4ad26a9a2899969495375327dc0360c (diff)
Notes
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 04cc6240e21e..e137622a45ca 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);