]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Have af-specific init_tempsel() initialize family field of temporary selector
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 4 Nov 2008 22:49:19 +0000 (14:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2008 22:49:19 +0000 (14:49 -0800)
commit57704d6899f0b0729a6dd72e34f58d521756030f
tree28089eb142f4d67e241db0bf01990998e922c028
parent77b985a2216452168ba6e6a220f4e22a80c34d84
xfrm: Have af-specific init_tempsel() initialize family field of temporary selector

While adding MIGRATE support to strongSwan, Andreas Steffen noticed that
the selectors provided in XFRM_MSG_ACQUIRE have their family field
uninitialized (those in MIGRATE do have their family set).

Looking at the code, this is because the af-specific init_tempsel()
(called via afinfo->init_tempsel() in xfrm_init_tempsel()) do not set
the value.

Reported-by: Andreas Steffen <andreas.steffen@strongswan.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
net/ipv4/xfrm4_state.c
net/ipv6/xfrm6_state.c