summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2022-08-18 15:03:45 +0200
committerMatthew Smith <mgsmith@netgate.com>2022-08-18 23:16:53 +0000
commit97d3d54c91097b52bf12324131bdac43aebc8808 (patch)
treebf93b60b1e61a47f51b49d911796a2d975bdab10 /src
parentfa7441ffc2552529784d15bb4c8450cf164281d6 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/wireguard/wireguard_output_tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/wireguard/wireguard_output_tun.c b/src/plugins/wireguard/wireguard_output_tun.c
index 64aaba7947f..5449c498db2 100644
--- a/src/plugins/wireguard/wireguard_output_tun.c
+++ b/src/plugins/wireguard/wireguard_output_tun.c
@@ -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--;
}