diff options
Diffstat (limited to 'vnet/vnet/ipsec/ipsec_if.c')
-rw-r--r-- | vnet/vnet/ipsec/ipsec_if.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vnet/vnet/ipsec/ipsec_if.c b/vnet/vnet/ipsec/ipsec_if.c index f4c53584..30631b60 100644 --- a/vnet/vnet/ipsec/ipsec_if.c +++ b/vnet/vnet/ipsec/ipsec_if.c @@ -155,28 +155,28 @@ ipsec_set_interface_key(vnet_main_t * vnm, u32 hw_if_index, sa = pool_elt_at_index(im->sad, t->output_sa_index); sa->crypto_alg = alg; sa->crypto_key_len = vec_len(key); - memcpy(sa->crypto_key, key, vec_len(key)); + clib_memcpy(sa->crypto_key, key, vec_len(key)); } else if (type == IPSEC_IF_SET_KEY_TYPE_LOCAL_INTEG) { sa = pool_elt_at_index(im->sad, t->output_sa_index); sa->integ_alg = alg; sa->integ_key_len = vec_len(key); - memcpy(sa->integ_key, key, vec_len(key)); + clib_memcpy(sa->integ_key, key, vec_len(key)); } else if (type == IPSEC_IF_SET_KEY_TYPE_REMOTE_CRYPTO) { sa = pool_elt_at_index(im->sad, t->input_sa_index); sa->crypto_alg = alg; sa->crypto_key_len = vec_len(key); - memcpy(sa->crypto_key, key, vec_len(key)); + clib_memcpy(sa->crypto_key, key, vec_len(key)); } else if (type == IPSEC_IF_SET_KEY_TYPE_REMOTE_INTEG) { sa = pool_elt_at_index(im->sad, t->input_sa_index); sa->integ_alg = alg; sa->integ_key_len = vec_len(key); - memcpy(sa->integ_key, key, vec_len(key)); + clib_memcpy(sa->integ_key, key, vec_len(key)); } else return VNET_API_ERROR_INVALID_VALUE; |