[XFRM]: xfrm_user: fix selector family initialization
authorPatrick McHardy <kaber@trash.net>
Wed, 9 Apr 2008 22:08:24 +0000 (15:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Apr 2008 22:08:24 +0000 (15:08 -0700)
commitbcf0dda8d2408fe1c1040cdec5a98e5fcad2ac72
tree33117ad780d212f8a83c007ccc1b95bc0debbdbf
parent21f644f3eabde637f255f75ad05d0821a7a36b7f
[XFRM]: xfrm_user: fix selector family initialization

Commit df9dcb45 ([IPSEC]: Fix inter address family IPsec tunnel handling)
broke openswan by removing the selector initialization for tunnel mode
in case it is uninitialized.

This patch restores the initialization, fixing openswan, but probably
breaking inter-family tunnels again (unknown since the patch author
disappeared). The correct thing for inter-family tunnels is probably
to simply initialize the selector family explicitly.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c