]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master] Continue work on 34172, remove the attempt to find the size
authorShawn Routhier <sar@isc.org>
Wed, 30 Apr 2014 02:39:27 +0000 (19:39 -0700)
committerShawn Routhier <sar@isc.org>
Wed, 30 Apr 2014 02:39:27 +0000 (19:39 -0700)
dst/dst_api.c

index 53276428fa38b41f74bcd5353f912c44458b04f2..35c7a7df8a1a0794306f7498775c00d08e54accb 100644 (file)
@@ -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);