summaryrefslogtreecommitdiff
path: root/src/irmd/reg/tests/reg_test.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-02-21 12:22:42 +0100
committerSander Vrijders <sander@ouroboros.rocks>2026-02-22 16:05:00 +0100
commit83533c990793b18628066196916851e6b34792df (patch)
tree8489efcb2c49a8e18e0990f3610247bd4fbf9131 /src/irmd/reg/tests/reg_test.c
parent562548ac5342ee7ce35e41569acf9e67be6f878b (diff)
downloadouroboros-83533c990793b18628066196916851e6b34792df.tar.gz
ouroboros-83533c990793b18628066196916851e6b34792df.zip
ipcpd: Skip vertices with empty forwarding lists
Fixes ECMP routing table to skip unreachable vertices with empty forwarding lists, avoiding uninitialized nhop access. Replace inner vertex list walk with bounded index loop instead of using a list_for_each to track indices (which confuses the static analyzer as it seems it can't prove the index remains valid). Remove spurious free(*dist) on ECMP success path (caller frees). Extract edge cleanup into free_edges helper in del_vertex to avoid a static analyzer false positive. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/reg/tests/reg_test.c')
0 files changed, 0 insertions, 0 deletions