diff options
author | paco <paco@voltanet.io> | 2018-06-08 19:46:48 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-08 19:46:48 +0200 |
commit | ce872c6adb26cb62051dcbbdaec8676516f936a8 (patch) | |
tree | dfa3cc377bc11f997186be14bccc87d237d96221 /ospf6d/ospf6_flood.c | |
parent | Merge pull request #2298 from qlyoung/pipe-actions-vtysh (diff) | |
download | frr-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/ospf6_flood.c')
-rw-r--r-- | ospf6d/ospf6_flood.c | 5 |
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 */ } |