diff options
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 9414b9c5b1e4..5b228f97d4b3 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -1035,16 +1035,12 @@ static struct xfrm_state *__find_acq_core(struct net *net, struct xfrm_mark *m, | |||
1035 | break; | 1035 | break; |
1036 | 1036 | ||
1037 | case AF_INET6: | 1037 | case AF_INET6: |
1038 | ipv6_addr_copy((struct in6_addr *)x->sel.daddr.a6, | 1038 | *(struct in6_addr *)x->sel.daddr.a6 = *(struct in6_addr *)daddr; |
1039 | (const struct in6_addr *)daddr); | 1039 | *(struct in6_addr *)x->sel.saddr.a6 = *(struct in6_addr *)saddr; |
1040 | ipv6_addr_copy((struct in6_addr *)x->sel.saddr.a6, | ||
1041 | (const struct in6_addr *)saddr); | ||
1042 | x->sel.prefixlen_d = 128; | 1040 | x->sel.prefixlen_d = 128; |
1043 | x->sel.prefixlen_s = 128; | 1041 | x->sel.prefixlen_s = 128; |
1044 | ipv6_addr_copy((struct in6_addr *)x->props.saddr.a6, | 1042 | *(struct in6_addr *)x->props.saddr.a6 = *(struct in6_addr *)saddr; |
1045 | (const struct in6_addr *)saddr); | 1043 | *(struct in6_addr *)x->id.daddr.a6 = *(struct in6_addr *)daddr; |
1046 | ipv6_addr_copy((struct in6_addr *)x->id.daddr.a6, | ||
1047 | (const struct in6_addr *)daddr); | ||
1048 | break; | 1044 | break; |
1049 | } | 1045 | } |
1050 | 1046 | ||