wireguard: fix error type for crypto backend

Crypto backend errors should not be using the same error as missing
keypair.

Type: fix

Change-Id: I78c2b3df3f08a354463b7824349b08627f2b023c
Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:
Benoît Ganne
2022-08-18 15:03:45 +02:00
committed by Matthew Smith
parent fa7441ffc2
commit 97d3d54c91
+1 -1
View File
@@ -161,7 +161,7 @@ wg_output_process_ops (vlib_main_t *vm, vlib_node_runtime_t *node,
if (op->status != VNET_CRYPTO_OP_STATUS_COMPLETED)
{
u32 bi = op->user_data;
b[bi]->error = node->errors[WG_OUTPUT_ERROR_KEYPAIR];
b[bi]->error = node->errors[WG_OUTPUT_ERROR_CRYPTO_ENGINE_ERROR];
nexts[bi] = drop_next;
n_fail--;
}