Merge pull request #4638 from donaldsharp/ospf_external_delete_crash

ospfd: Do not modify list when using _RO loop
This commit is contained in:
David Lamparter 2019-07-03 18:02:29 +02:00 committed by GitHub
commit e6a8d53dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -766,7 +766,7 @@ static void ospf_finish_final(struct ospf *ospf)
if (!ext_list)
continue;
for (ALL_LIST_ELEMENTS_RO(ext_list, node, ext)) {
for (ALL_LIST_ELEMENTS(ext_list, node, nnode, ext)) {
if (ext->external_info)
for (rn = route_top(ext->external_info); rn;
rn = route_next(rn)) {