crypto-input: fix crash bug 89/17889/2
authorKingwel Xie <kingwel.xie@ericsson.com>
Wed, 26 Dec 2018 02:31:28 +0000 (21:31 -0500)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 14 Mar 2019 08:09:46 +0000 (08:09 +0000)
commit50a392f5a0981fb442449864c479511c54145a29
tree8ebb6dc4ceefd378f83671fe572f25fc6f3d0a57
parent3e59d2eb20e73e0216c12964159c0a708482c548
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>
(cherry picked from commit 955ee280280e09b73621119f5753a38ce5173989)
src/plugins/dpdk/ipsec/crypto_node.c