diff options
author | 2020-01-21 15:38:45 +0000 | |
---|---|---|
committer | 2020-01-21 15:38:45 +0000 | |
commit | 50bedb707155de675121a556a8b129280440cdf5 (patch) | |
tree | a21b90b2a3178429330ff461a4ca2ae2d8bcfe9b /hicn-plugin/src/mapme_ctrl_node.c | |
parent | 43980f3096655df2b2ecec50e700dd6989b0e0d6 (diff) | |
parent | f2de2bfea184034f675ab4a521e7deaae58c5ff8 (diff) |
Merge "[HICN-477] Fixed strategy get ctx that could lead to a segfault"
Diffstat (limited to 'hicn-plugin/src/mapme_ctrl_node.c')
-rw-r--r-- | hicn-plugin/src/mapme_ctrl_node.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hicn-plugin/src/mapme_ctrl_node.c b/hicn-plugin/src/mapme_ctrl_node.c index 57f63dbe1..3985f3073 100644 --- a/hicn-plugin/src/mapme_ctrl_node.c +++ b/hicn-plugin/src/mapme_ctrl_node.c @@ -132,6 +132,13 @@ hicn_mapme_process_ctrl (vlib_main_t * vm, vlib_buffer_t * b, const hicn_dpo_vft_t *dpo_vft = hicn_dpo_get_vft (dpo->dpoi_type); hicn_mapme_tfib_t *tfib = TFIB (dpo_vft->hicn_dpo_get_ctx (dpo->dpoi_index)); + + if (tfib == NULL) + { + WARN ("Unable to get strategy ctx."); + return false; + } + fib_seq = tfib->seq; if (params.seq > fib_seq) |