[PATCH 2/2] xfrm: obvious copy-paste typo.
Alexander Nickulin
anikulin at dlink.ru
Fri Dec 4 09:40:28 EST 2020
Thanks to gcc people.
---
lib/xfrm/ae.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/xfrm/ae.c b/lib/xfrm/ae.c
index 4fe9647..4b75595 100644
--- a/lib/xfrm/ae.c
+++ b/lib/xfrm/ae.c
@@ -175,7 +175,7 @@ static int xfrm_ae_clone(struct nl_object *_dst, struct nl_object *_src)
uint32_t len = sizeof (struct xfrmnl_replay_state_esn) + (sizeof (uint32_t) * src->replay_state_esn->bmp_len);
if ((dst->replay_state_esn = (struct xfrmnl_replay_state_esn*)calloc (1, len)) == NULL)
return -NLE_NOMEM;
- memcpy (dst->replay_state_esn, dst->replay_state_esn, len);
+ memcpy (dst->replay_state_esn, src->replay_state_esn, len);
}
return 0;
--
2.27.0
More information about the libnl
mailing list