Browse files

previous change cached policy too much; back it out

  • Loading branch information...
1 parent 9799a91 commit bc6b862fa34dbb3f8eb67cc9e344faa7cc32c824 itojun committed Jun 16, 2002
Showing with 2 additions and 3 deletions.
  1. +2 −3 kame/sys/netinet6/ipsec.c
View
5 kame/sys/netinet6/ipsec.c
@@ -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.
@@ -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;

0 comments on commit bc6b862

Please sign in to comment.