commit | 5c5d281a93e9816966b6131ccec19519dab0e103 | [log] [tgz] |
---|---|---|
author | Patrick McHardy <kaber@trash.net> | Thu Apr 21 20:12:32 2005 -0700 |
committer | David S. Miller <davem@sunset.davemloft.net> | Thu Apr 21 20:12:32 2005 -0700 |
tree | a897ec464a600d7a678052bfd5e52378470a45fe | |
parent | 7938109fff944e0117976a39946d99d2b0b0250d [diff] |
[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>