diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-15 14:47:13 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-16 23:09:46 (GMT) |
commit | 23902d0701bf92a584e649fca4b22849dd36fe3d (patch) | |
tree | 1e3990476186d1767640d2e0a9fd4797110d1735 /lib/xfrm | |
parent | 29e5092fb7ef65c42513722577ccd3a6d01213bf (diff) | |
download | libnl-23902d0701bf92a584e649fca4b22849dd36fe3d.zip libnl-23902d0701bf92a584e649fca4b22849dd36fe3d.tar.gz libnl-23902d0701bf92a584e649fca4b22849dd36fe3d.tar.bz2 |
xfrm/sa: clone user_offload in xfrm_sa_clone()
Diffstat (limited to 'lib/xfrm')
-rw-r--r-- | lib/xfrm/sa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/xfrm/sa.c b/lib/xfrm/sa.c index 0656928..d453c26 100644 --- a/lib/xfrm/sa.c +++ b/lib/xfrm/sa.c @@ -205,6 +205,12 @@ static int xfrm_sa_clone(struct nl_object *_dst, struct nl_object *_src) memcpy ((void *)dst->replay_state_esn, (void *)src->replay_state_esn, len); } + if (src->user_offload) { + dst->user_offload = _nl_memdup_ptr(src->user_offload); + if (!dst->user_offload) + return -NLE_NOMEM; + } + return 0; } |