mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 20:18:54 +00:00
Merge pull request #16309 from louis-6wind/fix-pim-crash
pimd: fix crash on non-existent interface
This commit is contained in:
commit
703beba119
@ -1504,11 +1504,19 @@ int routing_control_plane_protocols_control_plane_protocol_pim_address_family_re
|
||||
*/
|
||||
int lib_interface_pim_address_family_create(struct nb_cb_create_args *args)
|
||||
{
|
||||
struct interface *ifp;
|
||||
|
||||
switch (args->event) {
|
||||
case NB_EV_VALIDATE:
|
||||
case NB_EV_PREPARE:
|
||||
case NB_EV_ABORT:
|
||||
case NB_EV_APPLY:
|
||||
case NB_EV_ABORT:
|
||||
break;
|
||||
case NB_EV_PREPARE:
|
||||
ifp = nb_running_get_entry(args->dnode, NULL, true);
|
||||
if (ifp->info)
|
||||
return NB_OK;
|
||||
|
||||
pim_if_new(ifp, false, false, false, false);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user