xfrm: clone XFRMA_REPLAY_ESN_VAL in xfrm_do_migrate
authorAntony Antony <antony.antony@secunet.com>
Fri, 4 Sep 2020 06:49:55 +0000 (08:49 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 7 Sep 2020 10:45:22 +0000 (12:45 +0200)
commit91a46c6d1b4fcbfa4773df9421b8ad3e58088101
tree7c9dd7f94263d831ba5d2c9fc9bbd167355d9ba8
parent545e5c571662b1cd79d9588f9d3b6e36985b8007
xfrm: clone XFRMA_REPLAY_ESN_VAL in xfrm_do_migrate

XFRMA_REPLAY_ESN_VAL was not cloned completely from the old to the new.
Migrate this attribute during XFRMA_MSG_MIGRATE

v1->v2:
 - move curleft cloning to a separate patch

Fixes: af2f464e326e ("xfrm: Assign esn pointers when cloning a state")
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h