crypto: bails out early for unsupported key type 58/27958/3
authorBenoît Ganne <bganne@cisco.com>
Fri, 17 Jul 2020 09:33:19 +0000 (11:33 +0200)
committerDamjan Marion <dmarion@me.com>
Tue, 21 Jul 2020 17:27:47 +0000 (17:27 +0000)
commit0c65f52bb9395526613493aa9c042ea4f6dbc1fc
treea35e2d859026a5db9a5ba0c07c900829918d6591
parente29fb5bf1b9ab87f4213d990377ea2604990135b
crypto: bails out early for unsupported key type

Do not access data structures based on uninitialized key->alg.

Type: fix
Fixes: f539578bac8b64886b57c460c9d74273e6613f8b

Change-Id: I6bfb7e7a51af2c131b8bdf3bca6a38fcf1094760
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/crypto_ipsecmb/ipsecmb.c
src/plugins/crypto_native/main.c