Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed addresses matching bug. reported from <hansi@xlink.net> by sys/…

…168.
  • Loading branch information...
commit 0c41f245ba1e84d5aa96111f57df124490013244 1 parent 92d1e39
sakane authored
Showing with 6 additions and 6 deletions.
  1. +3 −3 kame/sys/netkey/key.c
  2. +3 −3 kame/sys/netkey/keydb.c
View
6 kame/sys/netkey/key.c
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
-/* KAME $Id: key.c,v 1.21 1999/10/28 12:22:39 sakane Exp $ */
+/* KAME $Id: key.c,v 1.22 1999/11/01 00:53:56 sakane Exp $ */
/*
* This code is referd to RFC 2367
@@ -618,10 +618,10 @@ key_allocsa(family, src, dst, proto, spi)
if (key_bbcmp(src,
_INADDRBYSA(&sav->sah->saidx.src),
- _INALENBYAF(sav->sah->saidx.src.__ss_family))
+ _INALENBYAF(sav->sah->saidx.src.__ss_family) << 3)
&& key_bbcmp(dst,
_INADDRBYSA(&sav->sah->saidx.dst),
- _INALENBYAF(sav->sah->saidx.dst.__ss_family)))
+ _INALENBYAF(sav->sah->saidx.dst.__ss_family) << 3))
goto found;
}
}
View
6 kame/sys/netkey/keydb.c
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
-/* KAME $Id: keydb.c,v 1.21 1999/10/28 12:22:39 sakane Exp $ */
+/* KAME $Id: keydb.c,v 1.22 1999/11/01 00:53:56 sakane Exp $ */
/*
* This code is referd to RFC 2367
@@ -618,10 +618,10 @@ key_allocsa(family, src, dst, proto, spi)
if (key_bbcmp(src,
_INADDRBYSA(&sav->sah->saidx.src),
- _INALENBYAF(sav->sah->saidx.src.__ss_family))
+ _INALENBYAF(sav->sah->saidx.src.__ss_family) << 3)
&& key_bbcmp(dst,
_INADDRBYSA(&sav->sah->saidx.dst),
- _INALENBYAF(sav->sah->saidx.dst.__ss_family)))
+ _INALENBYAF(sav->sah->saidx.dst.__ss_family) << 3))
goto found;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.