diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2023-01-09 12:26:29 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-09 12:26:29 -0600 |
| commit | 61615e4dfd377dd40265591f37531079e48863d1 (patch) | |
| tree | bfa61dfe7c3669baae992f4d0240ddcf7dbe4035 /lib/elf_py.c | |
| parent | a8adf1b3cb313490a3f2ef5c03256e04546e0de4 (diff) | |
| parent | 26eaf6e386ed2b960c0004d2f927b586e516f587 (diff) | |
Merge pull request #12606 from opensourcerouting/fixes-20230106
*: various build fixes
Diffstat (limited to 'lib/elf_py.c')
| -rw-r--r-- | lib/elf_py.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elf_py.c b/lib/elf_py.c index 75d2d6007f..7c503cfb9d 100644 --- a/lib/elf_py.c +++ b/lib/elf_py.c @@ -293,7 +293,7 @@ static PyObject *elfreloc_getsection(PyObject *self, PyObject *args) if (!w->es) Py_RETURN_NONE; - if (w->symidx == 0) { + if (!w->symvalid || w->symidx == 0) { size_t idx = 0; Elf_Scn *scn; |
