Skip to content

Commit

Permalink
previous change cached policy too much; back it out
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Jun 16, 2002
1 parent 9799a91 commit bc6b862
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kame/sys/netinet6/ipsec.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: ipsec.c,v 1.154 2002/06/14 14:46:22 itojun Exp $ */
/* $KAME: ipsec.c,v 1.155 2002/06/16 15:32:30 itojun Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -303,8 +303,7 @@ ipsec_checkpcbcache(m, pcbsp, dir)
if (ipsec_setspidx(m, &spidx, 1) != 0)
return NULL;
if (bcmp(&pcbsp->cacheidx[dir], &spidx, sizeof(spidx))) {
if (pcbsp->cache[dir]->policy == IPSEC_POLICY_IPSEC &&
pcbsp->cache[dir]->spidx &&
if (pcbsp->cache[dir]->spidx &&
!key_cmpspidx_withmask(pcbsp->cache[dir]->spidx,
&spidx))
return NULL;
Expand Down

0 comments on commit bc6b862

Please sign in to comment.