diff options
author | bcook <> | 2023-07-07 19:54:36 +0000 |
---|---|---|
committer | bcook <> | 2023-07-07 19:54:36 +0000 |
commit | fe9b913b90f298c5dd4ba93988e01f57a72d318b (patch) | |
tree | da1a279fca5f4be01344d9cdcd37b43af4ecad61 /src | |
parent | 8d42940c1d19bb9bd4ce45580f18a59069225432 (diff) | |
download | openbsd-fe9b913b90f298c5dd4ba93988e01f57a72d318b.tar.gz openbsd-fe9b913b90f298c5dd4ba93988e01f57a72d318b.tar.bz2 openbsd-fe9b913b90f298c5dd4ba93988e01f57a72d318b.zip |
upstream portable fix for ocsp_test
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/ocsp/ocsp_test.c | 7 |
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()"); |