pimd: Track upstream state a bit better.

Track the upstream state if we are adding
a new state to a pre-existing upstream.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-09-23 11:10:31 -04:00
parent 88d6652ede
commit 16b7259142

View File

@ -569,6 +569,7 @@ struct pim_upstream *pim_upstream_add(struct prefix_sg *sg,
up = pim_upstream_find(sg);
if (up) {
++up->ref_count;
up->flags |= flags;
}
else {
up = pim_upstream_new(sg, incoming, flags);