This is rollback to 0.9.6h bn_mul.c to address problem reported in RT#272.
[oweals/openssl.git] / apps / s_server.c
index 7a74c41020232aafa07cf2fba004d34d0eb7057a..44886c5c26150e48a8862dab24781669fdc837a2 100644 (file)
@@ -868,7 +868,7 @@ end:
                bio_s_out=NULL;
                }
        apps_shutdown();
-       EXIT(ret);
+       OPENSSL_EXIT(ret);
        }
 
 static void print_stats(BIO *bio, SSL_CTX *ssl_ctx)
@@ -1184,7 +1184,7 @@ err:
        BIO_printf(bio_s_out,"CONNECTION CLOSED\n");
        if (buf != NULL)
                {
-               memset(buf,0,bufsize);
+               OPENSSL_cleanse(buf,bufsize);
                OPENSSL_free(buf);
                }
        if (ret >= 0)