diff options
author | Javier Garcia <javier.garcia@voltanet.io> | 2021-03-20 22:21:09 +0100 |
---|---|---|
committer | Javier Garcia <javier.garcia@voltanet.io> | 2021-03-20 22:21:09 +0100 |
commit | 7ed8c4b1fd2cd46864271e44a9778caa31d367fd (patch) | |
tree | 3b11f0c2123b57fee1cc7cf9ef0a21268decf7fe /pceplib/pcep_session_logic_states.c | |
parent | Merge pull request #8232 from reubendowle/fixes/nhrp-ipsec-issues (diff) | |
download | frr-7ed8c4b1fd2cd46864271e44a9778caa31d367fd.tar.xz frr-7ed8c4b1fd2cd46864271e44a9778caa31d367fd.zip |
pceplib: Fixing coverity messages.
Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
Diffstat (limited to 'pceplib/pcep_session_logic_states.c')
-rw-r--r-- | pceplib/pcep_session_logic_states.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pceplib/pcep_session_logic_states.c b/pceplib/pcep_session_logic_states.c index e2c3c2959..3beceefad 100644 --- a/pceplib/pcep_session_logic_states.c +++ b/pceplib/pcep_session_logic_states.c @@ -24,6 +24,7 @@ #include <stdbool.h> #include <stdio.h> #include <string.h> +#include <assert.h> #include "pcep_msg_encoding.h" #include "pcep_session_logic.h" @@ -461,6 +462,8 @@ void send_reconciled_pcep_open(pcep_session *session, struct pcep_object_open *open_obj = (struct pcep_object_open *)pcep_obj_get(open_msg->obj_list, PCEP_OBJ_CLASS_OPEN); + // open_msg can not have empty obj_list + assert(open_obj != NULL); if (error_open_obj->open_deadtimer != session->pce_config.dead_timer_seconds) { |