Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netkey correct hashed SPI lookup. reported by Greg Troxel



details:   https://anonhg.NetBSD.org/src/rev/ecba8985606f
branches:  trunk
changeset: 551642:ecba8985606f
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Sep 09 21:58:26 2003 +0000

description:
correct hashed SPI lookup.  reported by Greg Troxel

diffstat:

 sys/netkey/key.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 20d54c7c53c9 -r ecba8985606f sys/netkey/key.c
--- a/sys/netkey/key.c  Tue Sep 09 21:26:20 2003 +0000
+++ b/sys/netkey/key.c  Tue Sep 09 21:58:26 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key.c,v 1.93 2003/09/08 06:51:56 itojun Exp $  */
+/*     $NetBSD: key.c,v 1.94 2003/09/09 21:58:26 itojun Exp $  */
 /*     $KAME: key.c,v 1.310 2003/09/08 02:23:44 itojun Exp $   */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.93 2003/09/08 06:51:56 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.94 2003/09/09 21:58:26 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -728,8 +728,6 @@
        LIST_FOREACH(sav, &spihash[spi % SPIHASHSIZE], spihash) {
                if (sav->spi != spi)
                        continue;
-               if (sav->state != state)
-                       continue;
                if (proto != sav->sah->saidx.proto)
                        continue;
                if (family != sav->sah->saidx.src.ss_family ||



Home | Main Index | Thread Index | Old Index