summaryrefslogtreecommitdiffstats
path: root/libelf/elf32_updatefile.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2009-02-10 17:33:57 -0800
committerUlrich Drepper <[email protected]>2009-02-10 17:33:57 -0800
commit18fb63988e942f3f7156b46169dbf267631816dc (patch)
treef72230307a2a6fdd443769fdbf060992344608c7 /libelf/elf32_updatefile.c
parenta9d51bfe57609a2623ba4c626454456c4310bec9 (diff)
Don't write uninitialized data into zeroth section header entry.
Diffstat (limited to 'libelf/elf32_updatefile.c')
-rw-r--r--libelf/elf32_updatefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libelf/elf32_updatefile.c b/libelf/elf32_updatefile.c
index def4c09a..a4d83a1c 100644
--- a/libelf/elf32_updatefile.c
+++ b/libelf/elf32_updatefile.c
@@ -662,7 +662,7 @@ __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum)
/* The dummy section header entry. It should not be
possible to mark this "section" as dirty. */
assert ((scn->flags & ELF_F_DIRTY) == 0);
- continue;
+ goto next;
}
ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);