2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Removed memset()s that caused problems when updating to openssl 0.9.5

This commit is contained in:
Brian Wellington
2000-03-07 19:27:50 +00:00
parent 82b0a0e059
commit 7c141c0351
2 changed files with 2 additions and 8 deletions

View File

@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: openssl_link.c,v 1.13 2000/03/06 20:06:00 bwelling Exp $
* $Id: openssl_link.c,v 1.14 2000/03/07 19:27:50 bwelling Exp $
*/
#include <config.h>
@@ -331,8 +331,6 @@ dst_openssl_from_dns(dst_key_t *key, isc_buffer_t *data, isc_mem_t *mctx) {
if (dsa == NULL)
return (ISC_R_NOMEMORY);
memset(dsa, 0, sizeof(DSA));
t = (unsigned int) *r.base++;
if (t > 8) {
DSA_free(dsa);
@@ -459,7 +457,6 @@ dst_openssl_from_file(dst_key_t *key, const isc_uint16_t id, isc_mem_t *mctx) {
dsa = DSA_new();
if (dsa == NULL)
DST_RET(ISC_R_NOMEMORY);
memset(dsa, 0, sizeof(DSA));
key->opaque = dsa;
for (i=0; i < priv.nelements; i++) {

View File

@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: openssldh_link.c,v 1.7 2000/03/06 20:06:00 bwelling Exp $
* $Id: openssldh_link.c,v 1.8 2000/03/07 19:27:50 bwelling Exp $
*/
#include <config.h>
@@ -251,8 +251,6 @@ dst_openssldh_from_dns(dst_key_t *key, isc_buffer_t *data, isc_mem_t *mctx) {
if (dh == NULL)
return (ISC_R_NOMEMORY);
memset(dh, 0, sizeof(DH));
/*
* Read the prime length. 1 & 2 are table entries, > 16 means a
* prime follows, otherwise an error.
@@ -437,7 +435,6 @@ dst_openssldh_from_file(dst_key_t *key, const isc_uint16_t id, isc_mem_t *mctx)
dh = DH_new();
if (dh == NULL)
DST_RET(ISC_R_NOMEMORY);
memset(dh, 0, sizeof(DH));
key->opaque = dh;
for (i=0; i < priv.nelements; i++) {