summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ocsp/ocsp_test.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/ocsp/ocsp_test.c b/src/regress/lib/libcrypto/ocsp/ocsp_test.c
index 5914729828..a38d281353 100644
--- a/src/regress/lib/libcrypto/ocsp/ocsp_test.c
+++ b/src/regress/lib/libcrypto/ocsp/ocsp_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp_test.c,v 1.6 2018/07/18 16:24:16 tb Exp $ */ 1/* $OpenBSD: ocsp_test.c,v 1.7 2023/07/07 19:54:36 bcook Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2016 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -35,6 +35,11 @@ tcp_connect(char *host, char *port)
35 hints.ai_family = AF_INET; 35 hints.ai_family = AF_INET;
36 hints.ai_socktype = SOCK_STREAM; 36 hints.ai_socktype = SOCK_STREAM;
37 37
38 if (BIO_sock_init() != 1) {
39 perror("BIO_sock_init()");
40 exit(-1);
41 }
42
38 error = getaddrinfo(host, port, &hints, &res); 43 error = getaddrinfo(host, port, &hints, &res);
39 if (error != 0) { 44 if (error != 0) {
40 perror("getaddrinfo()"); 45 perror("getaddrinfo()");