2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

bad sizeof call

This commit is contained in:
Mark Andrews
2014-04-29 11:22:37 +10:00
parent 7e4dc84b0b
commit 9f5dbfc4bd

View File

@@ -1027,7 +1027,7 @@ dst_free_key(DST_KEY *f_key)
f_key->dk_alg));
}
if (f_key->dk_KEY_struct) {
SAFE_FREE2(f_key->dk_KEY_struct, sizeof(f_key->dk_KEY_struct));
SAFE_FREE2(f_key->dk_KEY_struct, sizeof(*f_key->dk_KEY_struct));
}
if (f_key->dk_key_name)
SAFE_FREE(f_key->dk_key_name);