crypto-input: fix crash bug 19/16619/4
authorKingwel Xie <kingwel.xie@ericsson.com>
Wed, 26 Dec 2018 02:31:28 +0000 (21:31 -0500)
committerKingwel Xie <kingwel.xie@ericsson.com>
Mon, 21 Jan 2019 03:40:39 +0000 (03:40 +0000)
commit955ee280280e09b73621119f5753a38ce5173989
treefdf98a8647341919736661ff20bfe423104f8641
parenta5c308e68d5578e5d75327619e30d73a95abb1a5
crypto-input: fix crash bug

as this node is refactored in new style with
vlib_buffer_enqueue_to_next, we have to check if the 'count'
is greater than 0. otherise, the next_index would be invalid
then lead to a crash

Change-Id: If7c323b59c02b5c16bd9d77b65c946512cc972c1
Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
src/plugins/dpdk/ipsec/crypto_node.c