tech-net archive

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

kdebug_sadb_key()



--- 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


Home | Main Index | Thread Index | Old Index