summaryrefslogtreecommitdiff
path: root/lib/elf_py.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2023-01-09 12:26:29 -0600
committerGitHub <noreply@github.com>2023-01-09 12:26:29 -0600
commit61615e4dfd377dd40265591f37531079e48863d1 (patch)
treebfa61dfe7c3669baae992f4d0240ddcf7dbe4035 /lib/elf_py.c
parenta8adf1b3cb313490a3f2ef5c03256e04546e0de4 (diff)
parent26eaf6e386ed2b960c0004d2f927b586e516f587 (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.c2
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;