diff options
| author | Russ White <russ@riw.us> | 2021-11-05 19:02:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-05 19:02:01 -0400 |
| commit | 7dfccb1233f6c10889be5e5619374839abdaa9ca (patch) | |
| tree | 6772460fb1509e6177494196d0e3ed00df0094ba /ospf6d/ospf6_interface.c | |
| parent | 77c657fb1f54da2d1c8aed40ef377ae2beaf8ddd (diff) | |
| parent | 81e06dd3c328517872ca705789d37e599720d43f (diff) | |
Merge pull request #9960 from donaldsharp/ospfv3_crash_exchange_done
ospf6d: Prevent use after free
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 64992bbcee..4205be38ba 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -675,7 +675,8 @@ uint8_t dr_election(struct ospf6_interface *oi) if (on->state < OSPF6_NEIGHBOR_TWOWAY) continue; /* Schedule AdjOK. */ - thread_add_event(master, adj_ok, on, 0, NULL); + thread_add_event(master, adj_ok, on, 0, + &on->thread_adj_ok); } } |
