aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-06-02 06:01:42 +0000
committerNeale Ranns <nranns@cisco.com>2019-06-02 06:01:42 +0000
commit0647cf22f8a8fff87f993e7a1d2eb1a5dbb1bdfe (patch)
tree9ff5f304816eae708cee32f39cf9594f636d6104 /src/vnet
parentb19bf8de1577612d26ead0a0c6ffb5ee2227172f (diff)
IPSec: memcpy of integ key bork
Change-Id: Icd76769d841792eb2d59ffc23c557dcca9ddc580 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ipsec/ipsec_sa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_sa.c b/src/vnet/ipsec/ipsec_sa.c
index 46c3b6d3821..4248c2e0e8e 100644
--- a/src/vnet/ipsec/ipsec_sa.c
+++ b/src/vnet/ipsec/ipsec_sa.c
@@ -363,7 +363,7 @@ ipsec_set_sa_key (u32 id, const ipsec_key_t * ck, const ipsec_key_t * ik)
/* new integ key */
if (ik)
{
- clib_memcpy (&sa->integ_key, 0, sizeof (sa->integ_key));
+ clib_memcpy (&sa->integ_key, ik, sizeof (sa->integ_key));
vnet_crypto_key_modify (vm, sa->integ_key_index, sa->integ_calg,
(u8 *) ik->data, ik->len);
}