Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ipsec-tools Endianness bug fix



details:   https://anonhg.NetBSD.org/src/rev/8f206e5bfc99
branches:  trunk
changeset: 581751:8f206e5bfc99
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Jun 04 21:55:05 2005 +0000

description:
Endianness bug fix

diffstat:

 crypto/dist/ipsec-tools/ChangeLog                 |  4 ++++
 crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c |  4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 70bf403f0cfe -r 8f206e5bfc99 crypto/dist/ipsec-tools/ChangeLog
--- a/crypto/dist/ipsec-tools/ChangeLog Sat Jun 04 21:45:05 2005 +0000
+++ b/crypto/dist/ipsec-tools/ChangeLog Sat Jun 04 21:55:05 2005 +0000
@@ -1,3 +1,7 @@
+2005-06-06  Emmanuel Dreyfus  <manu%netbsd.org@localhost>
+
+       * src/racoon/isakmp_quick.c: endianness bug fix
+
 2005-05-31  Aidas Kasparas  <a.kasparas%gmc.lt@localhost>
 
        * src/racoon/ipsec_doi.c: Inserted missing 0th element of
diff -r 70bf403f0cfe -r 8f206e5bfc99 crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
--- a/crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c Sat Jun 04 21:45:05 2005 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c Sat Jun 04 21:55:05 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isakmp_quick.c,v 1.4 2005/05/08 08:57:26 manu Exp $    */
+/*     $NetBSD: isakmp_quick.c,v 1.5 2005/06/04 21:55:05 manu Exp $    */
 
 /* Id: isakmp_quick.c,v 1.13.2.1 2005/03/02 20:00:03 vanhu Exp */
 
@@ -1518,7 +1518,7 @@
        n = (struct isakmp_pl_n *)notify->v;
        n->h.np = ISAKMP_NPTYPE_NONE;
        n->h.len = htons(tlen);
-       n->doi = htons(IPSEC_DOI);
+       n->doi = htonl(IPSEC_DOI);
        n->proto_id = iph2->approval->head->proto_id;
        n->spi_size = sizeof(iph2->approval->head->spisize);
        n->type = htons(ISAKMP_NTYPE_CONNECTED);



Home | Main Index | Thread Index | Old Index