Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 378
b: refs/heads/master
c: 5c5d281
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Apr 22, 2005
1 parent f32f198 commit 16f7897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7938109fff944e0117976a39946d99d2b0b0250d
refs/heads/master: 5c5d281a93e9816966b6131ccec19519dab0e103
5 changes: 3 additions & 2 deletions trunk/net/xfrm/xfrm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,9 @@ xfrm_state_find(xfrm_address_t *daddr, xfrm_address_t *saddr,

x = best;
if (!x && !error && !acquire_in_progress) {
x0 = afinfo->state_lookup(&tmpl->id.daddr, tmpl->id.spi, tmpl->id.proto);
if (x0 != NULL) {
if (tmpl->id.spi &&
(x0 = afinfo->state_lookup(daddr, tmpl->id.spi,
tmpl->id.proto)) != NULL) {
xfrm_state_put(x0);
error = -EEXIST;
goto out;
Expand Down

0 comments on commit 16f7897

Please sign in to comment.