summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2014-05-19 20:05:09 +0000
committerjca <jca@openbsd.org>2014-05-19 20:05:09 +0000
commite8edab7c5a53f91ccef9c0f418f0b0dc29da7852 (patch)
treee79c186918d203e5bfe600ceb1bc970b16b44198
parentHTTPS connections may see redirects, so initialize libcrypto and libssl (diff)
downloadwireguard-openbsd-e8edab7c5a53f91ccef9c0f418f0b0dc29da7852.tar.xz
wireguard-openbsd-e8edab7c5a53f91ccef9c0f418f0b0dc29da7852.zip
Explicitely initialize two static variables introduced in the previous
commit, to please lteo@
-rw-r--r--usr.bin/ftp/fetch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index 23857593120..8083a8a15a0 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fetch.c,v 1.119 2014/05/19 20:03:16 jca Exp $ */
+/* $OpenBSD: fetch.c,v 1.120 2014/05/19 20:05:09 jca Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
@@ -334,8 +334,8 @@ ssl_check_hostname(X509 *cert, char *host)
SSL_CTX *
ssl_get_ssl_ctx(void)
{
- static SSL_CTX *ssl_ctx;
- static int libssl_loaded;
+ static SSL_CTX *ssl_ctx = NULL;
+ static int libssl_loaded = 0;
if (ssl_ctx != NULL)
return ssl_ctx;