FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.12k stars 1.2k forks source link

pimd: fix misplaced braces/logic error in pim_rp_set_upstream_addr #16299

Closed eqvinox closed 1 week ago

eqvinox commented 1 week ago

The !rp_info || check got added during a cleanup pass. Unfortunately the braces/and/or combination is not correct :(

(for rp_info == NULL && source != INADDR_ANY)

Fixes: b194536 ("pimd: Various buffer overflow reads and crashes")