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/src/libipsec fix wrong size addition...



details:   https://anonhg.NetBSD.org/src/rev/7c5183462af3
branches:  trunk
changeset: 1010767:7c5183462af3
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jun 05 15:19:08 2020 +0000

description:
fix wrong size addition (Andrew Cagney)
XXX: This file is nearly identical with /usr/src/sys/netipsec/key_debug.c
and should be merged.

diffstat:

 crypto/dist/ipsec-tools/src/libipsec/key_debug.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a4c146c345ba -r 7c5183462af3 crypto/dist/ipsec-tools/src/libipsec/key_debug.c
--- a/crypto/dist/ipsec-tools/src/libipsec/key_debug.c  Fri Jun 05 12:47:28 2020 +0000
+++ b/crypto/dist/ipsec-tools/src/libipsec/key_debug.c  Fri Jun 05 15:19:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key_debug.c,v 1.14 2018/05/28 20:45:38 maxv Exp $      */
+/*     $NetBSD: key_debug.c,v 1.15 2020/06/05 15:19:08 christos Exp $  */
 
 /*     $KAME: key_debug.c,v 1.29 2001/08/16 14:25:41 itojun Exp $      */
 
@@ -418,7 +418,7 @@
                        (long)PFKEY_UNUNIT64(key->sadb_key_len) - sizeof(struct sadb_key));
        }
 
-       ipsec_hexdump(key + sizeof(struct sadb_key),
+       ipsec_hexdump(key + 1,
                      (int)((uint32_t)key->sadb_key_bits >> 3));
        printf(" }\n");
        return;



Home | Main Index | Thread Index | Old Index