Module Name: src
Committed By: christos
Date: Fri Jun 5 15:19:08 UTC 2020
Modified Files:
src/crypto/dist/ipsec-tools/src/libipsec: key_debug.c
Log Message:
fix wrong size addition (Andrew Cagney)
XXX: This file is nearly identical with /usr/src/sys/netipsec/key_debug.c
and should be merged.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 \
src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c
diff -u src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.14 src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.15
--- src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.14 Mon May 28 16:45:38 2018
+++ src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c Fri Jun 5 11:19:08 2020
@@ -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 @@ kdebug_sadb_key(struct sadb_ext *ext)
(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;