[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)
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>

No differences found