From fe9b913b90f298c5dd4ba93988e01f57a72d318b Mon Sep 17 00:00:00 2001 From: bcook <> Date: Fri, 7 Jul 2023 19:54:36 +0000 Subject: upstream portable fix for ocsp_test --- src/regress/lib/libcrypto/ocsp/ocsp_test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 @@ -/* $OpenBSD: ocsp_test.c,v 1.6 2018/07/18 16:24:16 tb Exp $ */ +/* $OpenBSD: ocsp_test.c,v 1.7 2023/07/07 19:54:36 bcook Exp $ */ /* * Copyright (c) 2016 Bob Beck * @@ -35,6 +35,11 @@ tcp_connect(char *host, char *port) hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; + if (BIO_sock_init() != 1) { + perror("BIO_sock_init()"); + exit(-1); + } + error = getaddrinfo(host, port, &hints, &res); if (error != 0) { perror("getaddrinfo()"); -- cgit v1.2.3-55-g6feb