diff options
author | Bodo Möller <bodo@openssl.org> | 1999-09-08 21:58:13 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-09-08 21:58:13 +0000 |
commit | 396f631458c34469bf12a575f0fccc44282e0d1d (patch) | |
tree | 06d18370963412a753b75c750837ea2da1c6976f /apps | |
parent | 0d64ea89f75fcd2dd11fbd50e615a7fc20167908 (diff) |
some more patches for avoiding problems with non-automatic variables
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_time.c | 15 | ||||
-rw-r--r-- | apps/speed.c | 1 |
2 files changed, 7 insertions, 9 deletions
diff --git a/apps/s_time.c b/apps/s_time.c index a529e2a119..a43df6bb92 100644 --- a/apps/s_time.c +++ b/apps/s_time.c @@ -248,15 +248,6 @@ static int parseArgs(int argc, char **argv) verify_depth=0; verify_error=X509_V_OK; -#ifdef FIONBIO - t_nbio=0; -#endif - - apps_startup(); - s_time_init(); - - if (bio_err == NULL) - bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); argc--; argv++; @@ -411,6 +402,12 @@ int MAIN(int argc, char **argv) MS_STATIC char buf[1024*8]; int ver; + apps_startup(); + s_time_init(); + + if (bio_err == NULL) + bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); + #if !defined(NO_SSL2) && !defined(NO_SSL3) s_time_meth=SSLv23_client_method(); #elif !defined(NO_SSL3) diff --git a/apps/speed.c b/apps/speed.c index cf5cbd2373..2819212aac 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -344,6 +344,7 @@ int MAIN(int argc, char **argv) int pr_header=0; apps_startup(); + memset(results, 0, sizeof(results)); #ifndef NO_DSA memset(dsa_key,0,sizeof(dsa_key)); #endif |