summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_intra.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2017-05-22 17:39:03 +0200
committerGitHub <noreply@github.com>2017-05-22 17:39:03 +0200
commit572244546cca1734cad64dc8ff3d96f2bc4c236e (patch)
tree7beb3a477812e1786670c5608bb45cb90f90e99b /ospf6d/ospf6_intra.c
parent74572f0099b5f3885883ac42eda09fd88e538c3f (diff)
parent8f599166fb5896224d5b0ec835be4e6b8c496d3e (diff)
Merge pull request #599 from qlyoung/fix-ospf6-uaf-3.0
ospf6d: fix use-after-free
Diffstat (limited to 'ospf6d/ospf6_intra.c')
-rw-r--r--ospf6d/ospf6_intra.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c
index 6461963856..5dd10b4c72 100644
--- a/ospf6d/ospf6_intra.c
+++ b/ospf6d/ospf6_intra.c
@@ -1455,13 +1455,14 @@ ospf6_intra_route_calculation (struct ospf6_area *oa)
{
if (hook_add)
(*hook_add) (route);
+ route->flag = 0;
}
else
{
/* Redo the summaries as things might have changed */
ospf6_abr_originate_summary (route);
+ route->flag = 0;
}
- route->flag = 0;
}
if (IS_OSPF6_DEBUG_EXAMIN (INTRA_PREFIX))