Merge pull request #4244 from donaldsharp/pim_single_interface

pimd: Stop crash in show of single interface
This commit is contained in:
Renato Westphal 2019-05-06 23:10:03 -03:00 committed by GitHub
commit ff1f50fb7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1207,6 +1207,8 @@ static void pim_show_interfaces_single(struct pim_instance *pim,
print_header = 1;
for (ALL_LIST_ELEMENTS_RO(pim->upstream_list, upnode,
up)) {
if (!up->rpf.source_nexthop.interface)
continue;
if (strcmp(ifp->name,
up->rpf.source_nexthop