diff options
-rw-r--r-- | src/vnet/ipsec/ipsec_sa.c | 2 |
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); } |