summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-08 19:46:48 +0200
committerpaco <paco@voltanet.io>2018-06-08 19:46:48 +0200
commitce872c6adb26cb62051dcbbdaec8676516f936a8 (patch)
treedfa3cc377bc11f997186be14bccc87d237d96221 /ospf6d
parentMerge pull request #2298 from qlyoung/pipe-actions-vtysh (diff)
downloadfrr-ce872c6adb26cb62051dcbbdaec8676516f936a8.tar.xz
frr-ce872c6adb26cb62051dcbbdaec8676516f936a8.zip
spf6d: fix use after free (Coverity 1221459)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_flood.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ospf6d/ospf6_flood.c b/ospf6d/ospf6_flood.c
index 6040c53dc..2059d8486 100644
--- a/ospf6d/ospf6_flood.c
+++ b/ospf6d/ospf6_flood.c
@@ -349,8 +349,9 @@ void ospf6_flood_interface(struct ospf6_neighbor *from, struct ospf6_lsa *lsa,
ospf6_lsa_unlock(req);
on->last_ls_req = NULL;
}
- ospf6_lsdb_remove(req,
- on->request_list);
+ if (req)
+ ospf6_lsdb_remove(req,
+ on->request_list);
ospf6_check_nbr_loading(on);
/* fall through */
}