diff options
| author | David Lamparter <equinox@diac24.net> | 2017-05-22 17:39:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-22 17:39:03 +0200 |
| commit | 572244546cca1734cad64dc8ff3d96f2bc4c236e (patch) | |
| tree | 7beb3a477812e1786670c5608bb45cb90f90e99b /ospf6d/ospf6_intra.c | |
| parent | 74572f0099b5f3885883ac42eda09fd88e538c3f (diff) | |
| parent | 8f599166fb5896224d5b0ec835be4e6b8c496d3e (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.c | 3 |
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)) |
