An error in a .private file could lead to an assertion.

This commit is contained in:
Brian Wellington 2000-08-16 00:30:56 +00:00
parent beea173d49
commit 5b148f96cc
4 changed files with 8 additions and 4 deletions

View file

@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: bsafe_link.c,v 1.33 2000/08/01 01:27:44 tale Exp $
* $Id: bsafe_link.c,v 1.34 2000/08/16 00:30:53 bwelling Exp $
*/
#if defined(DNSSAFE)
@ -465,6 +465,7 @@ dnssafersa_destroy(dst_key_t *key) {
B_DestroyKeyObject(&rkey->rk_Public_Key);
memset(rkey, 0, sizeof(*rkey));
isc_mem_put(mctx, rkey, sizeof(*rkey));
key->opaque = NULL;
}
static isc_result_t

View file

@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: hmac_link.c,v 1.43 2000/08/02 15:33:11 tale Exp $
* $Id: hmac_link.c,v 1.44 2000/08/16 00:30:54 bwelling Exp $
*/
#include <config.h>
@ -162,6 +162,7 @@ hmacmd5_destroy(dst_key_t *key) {
HMAC_Key *hkey = key->opaque;
memset(hkey, 0, sizeof(HMAC_Key));
isc_mem_put(key->mctx, hkey, sizeof(HMAC_Key));
key->opaque = NULL;
}
static isc_result_t

View file

@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: openssl_link.c,v 1.35 2000/08/10 22:28:33 bwelling Exp $
* $Id: openssl_link.c,v 1.36 2000/08/16 00:30:55 bwelling Exp $
*/
#if defined(OPENSSL)
@ -225,6 +225,7 @@ static void
openssldsa_destroy(dst_key_t *key) {
DSA *dsa = key->opaque;
DSA_free(dsa);
key->opaque = NULL;
}

View file

@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: openssldh_link.c,v 1.29 2000/08/10 22:28:34 bwelling Exp $
* $Id: openssldh_link.c,v 1.30 2000/08/16 00:30:56 bwelling Exp $
*/
#if defined(OPENSSL)
@ -194,6 +194,7 @@ openssldh_destroy(dst_key_t *key) {
if (dh->g == &bn2)
dh->g = NULL;
DH_free(dh);
key->opaque = NULL;
}
static void