aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/xfrm6_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
-rw-r--r--net/ipv6/xfrm6_policy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c
index 3cad3e8dc4da..5b02f0efd38e 100644
--- a/net/ipv6/xfrm6_policy.c
+++ b/net/ipv6/xfrm6_policy.c
@@ -157,7 +157,8 @@ __xfrm6_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int
157 dst_prev = dst1; 157 dst_prev = dst1;
158 158
159 if (xfrm[i]->type->flags & XFRM_TYPE_NON_FRAGMENT) 159 if (xfrm[i]->type->flags & XFRM_TYPE_NON_FRAGMENT)
160 dst->nfheader_len += xfrm[i]->props.header_len; 160 ((struct rt6_info *)dst)->nfheader_len +=
161 xfrm[i]->props.header_len;
161 header_len += xfrm[i]->props.header_len; 162 header_len += xfrm[i]->props.header_len;
162 trailer_len += xfrm[i]->props.trailer_len; 163 trailer_len += xfrm[i]->props.trailer_len;
163 164