pimd: Cleanup missed pimg

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-05-21 09:18:09 -04:00
parent 9a0f71c994
commit ac7eaeb401

View File

@ -48,6 +48,8 @@ struct thread *send_test_packet_timer = NULL;
void pim_register_join(struct pim_upstream *up) void pim_register_join(struct pim_upstream *up)
{ {
struct pim_instance *pim = up->channel_oil->pim;
if (pim_is_grp_ssm(up->sg.grp)) { if (pim_is_grp_ssm(up->sg.grp)) {
if (PIM_DEBUG_PIM_EVENTS) if (PIM_DEBUG_PIM_EVENTS)
zlog_debug("%s register setup skipped as group is SSM", zlog_debug("%s register setup skipped as group is SSM",
@ -55,7 +57,7 @@ void pim_register_join(struct pim_upstream *up)
return; return;
} }
pim_channel_add_oif(up->channel_oil, pimg->regiface, pim_channel_add_oif(up->channel_oil, pim->regiface,
PIM_OIF_FLAG_PROTO_PIM); PIM_OIF_FLAG_PROTO_PIM);
up->reg_state = PIM_REG_JOIN; up->reg_state = PIM_REG_JOIN;
} }