diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-02-21 12:22:42 +0100 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-02-22 16:05:00 +0100 |
| commit | 83533c990793b18628066196916851e6b34792df (patch) | |
| tree | 8489efcb2c49a8e18e0990f3610247bd4fbf9131 /src/tools/operf | |
| parent | 562548ac5342ee7ce35e41569acf9e67be6f878b (diff) | |
| download | ouroboros-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/tools/operf')
0 files changed, 0 insertions, 0 deletions
