Message ID | 20220106093606.3046771-4-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7770a39d7c63faec6c4f33666d49a8cb664d0482 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/6] xfrm: fix policy lookup for ipv6 gre packets | expand |
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 7c36cc1f3d79..0a2d2bae2831 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -3058,7 +3058,7 @@ static inline unsigned int xfrm_sa_len(struct xfrm_state *x) if (x->props.extra_flags) l += nla_total_size(sizeof(x->props.extra_flags)); if (x->xso.dev) - l += nla_total_size(sizeof(x->xso)); + l += nla_total_size(sizeof(struct xfrm_user_offload)); if (x->props.smark.v | x->props.smark.m) { l += nla_total_size(sizeof(x->props.smark.v)); l += nla_total_size(sizeof(x->props.smark.m));