ipsec: Init salt value in SA creation CLI (so it's not random) 42/28242/2
authorNeale Ranns <[email protected]>
Tue, 10 Dec 2019 01:08:19 +0000 (01:08 +0000)
committerAndrew Yourtchenko <[email protected]>
Wed, 12 Aug 2020 07:43:14 +0000 (07:43 +0000)
Type: fix

Change-Id: Idf4d0b59a1eb2c739a67a4786470884050f81561
Signed-off-by: Neale Ranns <[email protected]>
(cherry picked from commit 8dc75c0cc3ac0db13778a0a32f9aa81597b80556)

src/vnet/ipsec/ipsec_cli.c

index 1bff608..a8a74cf 100644 (file)
@@ -88,6 +88,7 @@ ipsec_sa_add_del_command_fn (vlib_main_t * vm,
   u32 id, spi, salt;
   int is_add, rv;
 
+  salt = 0;
   error = NULL;
   is_add = 0;
   flags = IPSEC_SA_FLAG_NONE;