aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/crypto/crypto.c
diff options
context:
space:
mode:
authorDmitry Valter <d-valter@yandex-team.ru>2022-10-17 14:04:35 +0000
committerFan Zhang <royzhang1980@hotmail.com>2022-10-24 09:35:45 +0000
commitcb3a6bdea948ebf97d4380cf4d93c66feaf9ec3c (patch)
treedc50d16401996c241c6d251509390896552e8b9f /src/vnet/crypto/crypto.c
parent4897257dbeb61061fd7ff8b8d3854784d16366de (diff)
crypto: fix dead nn foreach
Pass vec_foreach args in the right order Type: fix Signed-off-by: Dmitry Valter <d-valter@yandex-team.ru> Change-Id: I90d3dfb70ee2dbd9a48ae9ecfd2c1526a74d0786
Diffstat (limited to 'src/vnet/crypto/crypto.c')
-rw-r--r--src/vnet/crypto/crypto.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vnet/crypto/crypto.c b/src/vnet/crypto/crypto.c
index 1c724a346c2..f8926c9734a 100644
--- a/src/vnet/crypto/crypto.c
+++ b/src/vnet/crypto/crypto.c
@@ -627,11 +627,11 @@ vnet_crypto_register_post_node (vlib_main_t * vm, char *post_node_name)
return ~0;
/* *INDENT-OFF* */
- vec_foreach (cm->next_nodes, nn)
- {
- if (nn->node_idx == pn->index)
- return nn->next_idx;
- }
+ vec_foreach (nn, cm->next_nodes)
+ {
+ if (nn->node_idx == pn->index)
+ return nn->next_idx;
+ }
/* *INDENT-ON* */
vec_validate (cm->next_nodes, index);