pimd: Fix crash with ifchannel and upstream

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-06-26 13:14:47 -04:00
parent df766618e2
commit 9c80de2434

View File

@ -577,6 +577,7 @@ struct pim_ifchannel *pim_ifchannel_add(struct interface *ifp,
XFREE(MTYPE_PIM_IFCHANNEL, ch);
return NULL;
}
ch->upstream = up;
listnode_add_sort(up->ifchannels, ch);