]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Prevent crash of pim when auto-rp's socket is not initialized 17578/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 4 Dec 2024 15:47:33 +0000 (10:47 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 4 Dec 2024 15:49:49 +0000 (10:49 -0500)
commit37b88191fb4736ff0a1e565fc22003d0ab853ea2
tree153e120c27de7751127a85c1f414963a98692cfe
parent267dc19825eb1e5281fd6f6990bf0ee7c4664604
pimd: Prevent crash of pim when auto-rp's socket is not initialized

If the socket associated with the auto-rp fails to initialize then
the memory for the auto-rp is just dropped on the floor.  Additionally
any type of attempt at using the feature will just cause pimd to crash,
when the pointer is derefed.  Since it is derefed all over the place
without checking.

Clearly if you cannot bind/use the socket let's allow continuation.

Fixes: #17540
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
pimd/pim_autorp.c