From: Shawn Routhier Date: Wed, 30 Apr 2014 02:39:27 +0000 (-0700) Subject: [master] Continue work on 34172, remove the attempt to find the size X-Git-Tag: v4_3_1b1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1280d050403680c67352a95da0a90771d0b67e;p=thirdparty%2Fdhcp.git [master] Continue work on 34172, remove the attempt to find the size --- diff --git a/dst/dst_api.c b/dst/dst_api.c index 53276428f..35c7a7df8 100644 --- a/dst/dst_api.c +++ b/dst/dst_api.c @@ -1023,7 +1023,12 @@ 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)); + /* + * We can't used SAFE_FREE* here as we do not know the size + * of the structure, so no way to zero it. + */ + free(f_key->dk_KEY_struct); + f_key->dk_KEY_struct = NULL; } if (f_key->dk_key_name) SAFE_FREE(f_key->dk_key_name);