summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2018-06-21 20:38:47 +0200
committerGitHub <noreply@github.com>2018-06-21 20:38:47 +0200
commitc3fdecefb490894c235ce57f6c207882fb3c5a2c (patch)
treeb940cd68db1b4fb15870731913e8c04d5d850300 /ospf6d
parentMerge pull request #2513 from pacovn/Coverity_1455334_et_al_Dereference_null_... (diff)
parentspf6d: fix use after free (2) (Coverity 1221459) (diff)
downloadfrr-c3fdecefb490894c235ce57f6c207882fb3c5a2c.tar.xz
frr-c3fdecefb490894c235ce57f6c207882fb3c5a2c.zip
Merge pull request #2502 from pacovn/Coverity_1221459_Use_after_free
ospf6d: fix use after free (2) (Coverity 1221459)
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_flood.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ospf6d/ospf6_flood.c b/ospf6d/ospf6_flood.c
index 2059d8486..ae26668c8 100644
--- a/ospf6d/ospf6_flood.c
+++ b/ospf6d/ospf6_flood.c
@@ -347,6 +347,7 @@ void ospf6_flood_interface(struct ospf6_neighbor *from, struct ospf6_lsa *lsa,
"Received is newer, remove requesting");
if (req == on->last_ls_req) {
ospf6_lsa_unlock(req);
+ req = NULL;
on->last_ls_req = NULL;
}
if (req)