]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/xfrm/xfrm_state.c
[XFRM]: Fix existence lookup in xfrm_state_find
authorPatrick McHardy <kaber@trash.net>
Fri, 22 Apr 2005 03:12:32 +0000 (20:12 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Apr 2005 03:12:32 +0000 (20:12 -0700)
commit5c5d281a93e9816966b6131ccec19519dab0e103
treea897ec464a600d7a678052bfd5e52378470a45fe
parent7938109fff944e0117976a39946d99d2b0b0250d
[XFRM]: Fix existence lookup in xfrm_state_find

Use 'daddr' instead of &tmpl->id.daddr, since the latter
might be zero.  Also, only perform the lookup when
tmpl->id.spi is non-zero.

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