Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63421
b: refs/heads/master
c: 196b003
h: refs/heads/master
i:
  63419: 7aef772
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jul 31, 2007
1 parent f73f362 commit 3f3b3be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8ed601cefe7a4014b93560bd846caf44f25b1c1
refs/heads/master: 196b003620f1ee8d0fc63f13f341187d63c1dc0a
7 changes: 7 additions & 0 deletions trunk/net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ static void copy_from_user_state(struct xfrm_state *x, struct xfrm_usersa_info *
x->props.family = p->family;
memcpy(&x->props.saddr, &p->saddr, sizeof(x->props.saddr));
x->props.flags = p->flags;

/*
* Set inner address family if the KM left it as zero.
* See comment in validate_tmpl.
*/
if (!x->sel.family)
x->sel.family = p->family;
}

/*
Expand Down

0 comments on commit 3f3b3be

Please sign in to comment.