debuginfod_find_section: Always update rc with most recent error code
authorAaron Merey <amerey@redhat.com>
Fri, 4 Nov 2022 21:22:40 +0000 (17:22 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 4 Nov 2022 21:22:40 +0000 (17:22 -0400)
commit4628be9e03db78eaf2b02e9aa6cc677a0b4319ea
tree7ade212219d50ce33796dc8e8c4eeeb437a503d7
parentc424e5f3d24f76e01242d15ba361dc6234706fed
debuginfod_find_section: Always update rc with most recent error code

debuginfod_find_section may attempt to download both the debuginfo
and executable matching the given build-id.  If neither of these
files can be found, update rc to ensure that we always return an
accurate error code in this case.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c