HomeFreeBSD

libdwarf: Fix error handling in _dwarf_elf_init()

Description

libdwarf: Fix error handling in _dwarf_elf_init()

We were not setting "ret" before jumping to the error path, so the
function returned success even when it had failed.

Reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33420

Details

Provenance
markjAuthored on Dec 13 2021, 11:45 PM
Reviewer
emaste
Differential Revision
D33420: libdwarf: Fix error handling in _dwarf_elf_init()
Parents
rGfe04c91184e9: nfscl: add a filesize limit check to nfs_allocate()
Branches
Unknown
Tags
Unknown