xfrm: wrong hash value for temporary SA
commitde9fbb9b8480bbcde060589621923fceb4b4a5d7
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 27 Apr 2009 09:58:59 +0000 (27 02:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Jun 2009 16:39:49 +0000 (15 09:39 -0700)
tree355282a3d7cba6162cc4236b3a2ee7686af1114e
parent186f9b18b94afd0b75a8ec1b394b0f119d479eb6
xfrm: wrong hash value for temporary SA

[ Upstream commit 6a783c9067e3f71aac61a9262fe42c1f68efd4fc ]

When kernel inserts a temporary SA for IKE, it uses the wrong hash
value for dst list. Two hash values were calcultated before: one with
source address and one with a wildcard source address.

Bug hinted by Junwei Zhang <junwei.zhang@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/xfrm/xfrm_state.c