diff options
| author | Sarita Patra <saritap@vmware.com> | 2023-05-05 10:52:33 -0700 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-06-01 06:14:12 +0000 |
| commit | 0e1bf2a4d83c35053cb71b12a4dad159b7b1cc84 (patch) | |
| tree | a26c7a8aa2840010426bf72b59cc020ba88b4ef0 /lib/command.c | |
| parent | 6034c57d0837655cadfc5484421a94e6491168c0 (diff) | |
pim6d: Fix crash in ipv6 pim command
Problem:
Execute the below commands, pim6d core happens.
interface ens193
ip address 69.0.0.2/24
ipv6 address 8000::1/120
ipv6 mld
ipv6 pim
We see crash only if the interface is not configured, and
we are executing PIM/MLD commands.
RootCause:
Interface ens193 is not configured. So, it will have
ifindex = 0 and mroute_vif_index = -1.
Currently, we don't enable MLD on an interface if
mroute_vif_index < 0. So, pim_ifp->MLD = NULL.
In the API pim_if_membership_refresh(), we are accessing
pim_ifp->MLD NULL pointer which leads to crash.
Fix:
Added NULL check before accessing pim_ifp->MLD pointer in
the API pim_if_membership_refresh().
Issue: #13385
Signed-off-by: Sarita Patra <saritap@vmware.com>
(cherry picked from commit 6d1d2c27a318bbcc9b5b77d73642e3d1f6d72ac2)
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions
