diff options
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r-- | net/xfrm/xfrm_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 84dd85ceeeea..8024b3dea8c2 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -1425,6 +1425,7 @@ static int copy_to_user_tmpl(struct xfrm_policy *xp, struct sk_buff *skb) | |||
1425 | struct xfrm_user_tmpl *up = &vec[i]; | 1425 | struct xfrm_user_tmpl *up = &vec[i]; |
1426 | struct xfrm_tmpl *kp = &xp->xfrm_vec[i]; | 1426 | struct xfrm_tmpl *kp = &xp->xfrm_vec[i]; |
1427 | 1427 | ||
1428 | memset(up, 0, sizeof(*up)); | ||
1428 | memcpy(&up->id, &kp->id, sizeof(up->id)); | 1429 | memcpy(&up->id, &kp->id, sizeof(up->id)); |
1429 | up->family = kp->encap_family; | 1430 | up->family = kp->encap_family; |
1430 | memcpy(&up->saddr, &kp->saddr, sizeof(up->saddr)); | 1431 | memcpy(&up->saddr, &kp->saddr, sizeof(up->saddr)); |