Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-11-05 15:28:10 +0300
committerBodo Möller <bodo@openssl.org>2002-11-05 15:28:10 +0300
commite2a93e38d660cad6580fa1408148292b19dc7f13 (patch)
tree2fd42c614685a376e3977151f126dcddc9aa2781 /ssl
parent41c2fb962c9065ecb01e6ad9968c38a62d8e5989 (diff)
avoid Purify warnings
Submitted by: Nils Larsch
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssltest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index 80618c62d6..c5494890e1 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -835,6 +835,8 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
int i, r;
clock_t c_clock = clock();
+ memset(cbuf, 0, sizeof(cbuf));
+
if (debug)
if (SSL_in_init(c_ssl))
printf("client waiting in SSL_connect - %s\n",
@@ -919,6 +921,8 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
int i, r;
clock_t s_clock = clock();
+ memset(sbuf, 0, sizeof(sbuf));
+
if (debug)
if (SSL_in_init(s_ssl))
printf("server waiting in SSL_accept - %s\n",
@@ -1162,6 +1166,9 @@ int doit(SSL *s_ssl, SSL *c_ssl, long count)
int c_write,s_write;
int do_server=0,do_client=0;
+ memset(cbuf,0,sizeof(cbuf));
+ memset(sbuf,0,sizeof(sbuf));
+
c_to_s=BIO_new(BIO_s_mem());
s_to_c=BIO_new(BIO_s_mem());
if ((s_to_c == NULL) || (c_to_s == NULL))