mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:44:16 +00:00
Merge pull request #16434 from FRRouting/mergify/bp/stable/10.0/pr-16309
pimd: fix crash on non-existent interface (backport #16309)
This commit is contained in:
commit
73db6939b4
@ -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)
|
int lib_interface_pim_address_family_create(struct nb_cb_create_args *args)
|
||||||
{
|
{
|
||||||
|
struct interface *ifp;
|
||||||
|
|
||||||
switch (args->event) {
|
switch (args->event) {
|
||||||
case NB_EV_VALIDATE:
|
case NB_EV_VALIDATE:
|
||||||
case NB_EV_PREPARE:
|
|
||||||
case NB_EV_ABORT:
|
|
||||||
case NB_EV_APPLY:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user