--- a/key_debug.c +++ b/key_debug.c @@ -421,7 +421,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; enjoy