]> git.neil.brown.name Git - history.git/commit
[PATCH] [IPSEC]: Fix __xfrm_find_acq_byseq()
authorDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2005 13:39:03 +0000 (05:39 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Mar 2005 13:39:03 +0000 (05:39 -0800)
commitad6be0768ccf8a8ae5d6ca2c3ef2057776db2a74
tree8504771be5674bea17a1ddf75da2d1f789820bb7
parent858b4c713e16d724c21a51b0e11f78306dd43071
[PATCH] [IPSEC]: Fix __xfrm_find_acq_byseq()

This function, as it's name implies, is supposed to only
return IPSEC objects which are in the XFRM_STATE_ACQ
("acquire") state.  But it returns any object with the
matching sequence number.

This is wrong and confuses IPSEC daemons to no end.

[XFRM]: xfrm_find_acq_byseq should only return XFRM_STATE_ACQ states.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/xfrm/xfrm_state.c