Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200548
b: refs/heads/master
c: b1312c8
h: refs/heads/master
v: v3
  • Loading branch information
Timo Teräs authored and David S. Miller committed Jun 24, 2010
1 parent dac226b commit 66eac08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 38000a94a902e94ca8b5498f7871c6316de8957a
refs/heads/master: b1312c89f0016f778cac4f1536f1434e132f8713
3 changes: 2 additions & 1 deletion trunk/net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,8 @@ int xfrm_bundle_ok(struct xfrm_policy *pol, struct xfrm_dst *first,
return 0;
if (xdst->xfrm_genid != dst->xfrm->genid)
return 0;
if (xdst->policy_genid != atomic_read(&xdst->pols[0]->genid))
if (xdst->num_pols > 0 &&
xdst->policy_genid != atomic_read(&xdst->pols[0]->genid))
return 0;

if (strict && fl &&
Expand Down

0 comments on commit 66eac08

Please sign in to comment.