Home
last modified time | relevance | path

Searched hist:"75 e252d9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/xfrm/
H A Dxfrm_state.c75e252d9 Mon Mar 12 19:14:07 CDT 2007 Joy Latten <latten@austin.ibm.com> [XFRM]: Fix missing protocol comparison of larval SAs.

I noticed that in xfrm_state_add we look for the larval SA in a few
places without checking for protocol match. So when using both
AH and ESP, whichever one gets added first, deletes the larval SA.
It seems AH always gets added first and ESP is always the larval
SA's protocol since the xfrm->tmpl has it first. Thus causing the
additional km_query()

Adding the check eliminates accidental double SA creation.

Signed-off-by: Joy Latten <latten@austin.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>