avoid Purify warnings
[openssl.git] / ssl / ssltest.c
index ed80716310421264eb5c763399280086cc90ea48..84b96e49ed559a69ffc7b3eda349f0652b9b5567 100644 (file)
@@ -530,7 +530,7 @@ int main(int argc, char *argv[])
 #ifndef OPENSSL_NO_ECDH                
                        named_curve = *(++argv);
 #else
-                       fprintf(stderr,"ignoring -named_curve, since I'm compiled without ECDH\n"
+                       fprintf(stderr,"ignoring -named_curve, since I'm compiled without ECDH\n");
                        ++argv;
 #endif
                        }
@@ -903,6 +903,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",
@@ -987,6 +989,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",
@@ -1230,6 +1234,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))