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:
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Principal Author: Brian Wellington
|
* 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>
|
#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)
|
if (dsa == NULL)
|
||||||
return (ISC_R_NOMEMORY);
|
return (ISC_R_NOMEMORY);
|
||||||
|
|
||||||
memset(dsa, 0, sizeof(DSA));
|
|
||||||
|
|
||||||
t = (unsigned int) *r.base++;
|
t = (unsigned int) *r.base++;
|
||||||
if (t > 8) {
|
if (t > 8) {
|
||||||
DSA_free(dsa);
|
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();
|
dsa = DSA_new();
|
||||||
if (dsa == NULL)
|
if (dsa == NULL)
|
||||||
DST_RET(ISC_R_NOMEMORY);
|
DST_RET(ISC_R_NOMEMORY);
|
||||||
memset(dsa, 0, sizeof(DSA));
|
|
||||||
key->opaque = dsa;
|
key->opaque = dsa;
|
||||||
|
|
||||||
for (i=0; i < priv.nelements; i++) {
|
for (i=0; i < priv.nelements; i++) {
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Principal Author: Brian Wellington
|
* 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>
|
#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)
|
if (dh == NULL)
|
||||||
return (ISC_R_NOMEMORY);
|
return (ISC_R_NOMEMORY);
|
||||||
|
|
||||||
memset(dh, 0, sizeof(DH));
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read the prime length. 1 & 2 are table entries, > 16 means a
|
* Read the prime length. 1 & 2 are table entries, > 16 means a
|
||||||
* prime follows, otherwise an error.
|
* 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();
|
dh = DH_new();
|
||||||
if (dh == NULL)
|
if (dh == NULL)
|
||||||
DST_RET(ISC_R_NOMEMORY);
|
DST_RET(ISC_R_NOMEMORY);
|
||||||
memset(dh, 0, sizeof(DH));
|
|
||||||
key->opaque = dh;
|
key->opaque = dh;
|
||||||
|
|
||||||
for (i=0; i < priv.nelements; i++) {
|
for (i=0; i < priv.nelements; i++) {
|
||||||
|
Reference in New Issue
Block a user