aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-09-13 17:14:57 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-30 15:32:48 +0000
commita30d9692977e05faad873597436d015ed4d6faf8 (patch)
tree3236a7103e259bd60d3cd2a5ec5a7864107bb6a3 /src/plugins
parent296513b590453a0aa0eaa86ead0f07ff80a8b875 (diff)
session: fix msg freeing on error
Type: fix Change-Id: I0807f84737d5e98e69e9ed27a1de6813b2ddd138 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com> (cherry picked from commit 1afa7afffad6e296a97556aa4c9482f4cd544074)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/hs_apps/sapi/vpp_echo_common.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/hs_apps/sapi/vpp_echo_common.c b/src/plugins/hs_apps/sapi/vpp_echo_common.c
index 013affd0420..deeb3b14d93 100644
--- a/src/plugins/hs_apps/sapi/vpp_echo_common.c
+++ b/src/plugins/hs_apps/sapi/vpp_echo_common.c
@@ -463,12 +463,6 @@ echo_send_rpc (echo_main_t * em, void *fp, void *arg, u32 opaque)
return -2;
}
msg = svm_msg_q_alloc_msg_w_ring (em->rpc_msq_queue, 0);
- if (PREDICT_FALSE (svm_msg_q_msg_is_invalid (&msg)))
- {
- ECHO_LOG (1, "RPC msg is invalid");
- svm_msg_q_unlock (em->rpc_msq_queue);
- return -2;
- }
evt = (echo_rpc_msg_t *) svm_msg_q_msg_data (em->rpc_msq_queue, &msg);
evt->arg = arg;
evt->opaque = opaque;