crypto: fix set crypto handlers 15/25415/2
authorFilip Tehlar <ftehlar@cisco.com>
Tue, 25 Feb 2020 09:53:26 +0000 (09:53 +0000)
committerDamjan Marion <dmarion@me.com>
Wed, 26 Feb 2020 12:05:04 +0000 (12:05 +0000)
Type: fix

Change-Id: I9e168a87aff1882636840eb94e5509cd08885fb5
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
src/vnet/crypto/crypto.c

index 4458bfc..1caff71 100644 (file)
@@ -172,7 +172,7 @@ vnet_crypto_set_handler2 (char *alg_name, char *engine,
   if (!p)
     return -1;
 
-  for (i = 0; i < VNET_CRYPTO_OP_N_TYPES; i += 2)
+  for (i = 0; i < VNET_CRYPTO_OP_N_TYPES; i++)
     {
       vnet_crypto_op_data_t *od;
       vnet_crypto_op_id_t id = ad->op_by_type[i];