crypto: drop the frame if there is no handler 42/35842/1
authorDastin Wilski <dastin.wilski@gmail.com>
Thu, 31 Mar 2022 09:55:09 +0000 (11:55 +0200)
committerDastin Wilski <dastin.wilski@gmail.com>
Thu, 31 Mar 2022 09:55:09 +0000 (11:55 +0200)
commit8a4a7c216a7db3f06a2221290129aaba81a44bb9
tree24e101ef563793380abc26b53decdb8d89c16050
parentd918cc54eb5f178ccf81dc2463d176cffcd63df1
crypto: drop the frame if there is no handler

If async engines are disbaled and async is turned on vpp tries to
enqueue frame with nonexisting handler which leads to segfault.
This patch checks for handler and drops the frame in case it doesn't
exist.

Type: fix
Signed-off-by: Dastin Wilski <dastin.wilski@gmail.com>
Change-Id: I67211867ee29dc41cc9f0733e8e0b3ea86677f85
src/vnet/crypto/crypto.h