Skip to content

Commit

Permalink
Merge pull request #15197 from idryzhov/pim-nb-fix
Browse files Browse the repository at this point in the history
pimd: fix crash when configuring ssmpingd
  • Loading branch information
donaldsharp authored Jan 23, 2024
2 parents 3ab8fc1 + 8ffc364 commit edd4a85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pimd/pim_nb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,7 @@ int routing_control_plane_protocols_control_plane_protocol_pim_address_family_ss
case NB_EV_APPLY:
vrf = nb_running_get_entry(args->dnode, NULL, true);
pim = vrf->info;
yang_dnode_get_pimaddr(&source_addr, args->dnode,
"./source-addr");
yang_dnode_get_pimaddr(&source_addr, args->dnode, NULL);
result = pim_ssmpingd_start(pim, source_addr);
if (result) {
snprintf(
Expand Down Expand Up @@ -953,8 +952,7 @@ int routing_control_plane_protocols_control_plane_protocol_pim_address_family_ss
case NB_EV_APPLY:
vrf = nb_running_get_entry(args->dnode, NULL, true);
pim = vrf->info;
yang_dnode_get_pimaddr(&source_addr, args->dnode,
"./source-addr");
yang_dnode_get_pimaddr(&source_addr, args->dnode, NULL);
result = pim_ssmpingd_stop(pim, source_addr);
if (result) {
snprintf(
Expand Down

0 comments on commit edd4a85

Please sign in to comment.