summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/openssl.c')
-rw-r--r--src/usr.bin/openssl/openssl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c
index 76e1644f59..08e22ca829 100644
--- a/src/usr.bin/openssl/openssl.c
+++ b/src/usr.bin/openssl/openssl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: openssl.c,v 1.2 2014/10/22 13:54:03 jsing Exp $ */ 1/* $OpenBSD: openssl.c,v 1.3 2015/03/22 10:36:22 bcook Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -259,6 +259,11 @@ main(int argc, char **argv)
259 exit(1); 259 exit(1);
260 } 260 }
261 261
262 if (BIO_sock_init() != 1) {
263 BIO_printf(bio_err, "BIO_sock_init failed\n");
264 exit(1);
265 }
266
262 CRYPTO_set_locking_callback(lock_dbg_cb); 267 CRYPTO_set_locking_callback(lock_dbg_cb);
263 268
264 openssl_startup(); 269 openssl_startup();