artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
694d9bf
)
upstream portable fix for ocsp_test
author
bcook
<bcook@openbsd.org>
Fri, 7 Jul 2023 19:54:36 +0000
(19:54 +0000)
committer
bcook
<bcook@openbsd.org>
Fri, 7 Jul 2023 19:54:36 +0000
(19:54 +0000)
regress/lib/libcrypto/ocsp/ocsp_test.c
patch
|
blob
|
history
diff --git
a/regress/lib/libcrypto/ocsp/ocsp_test.c
b/regress/lib/libcrypto/ocsp/ocsp_test.c
index
5914729
..
a38d281
100644
(file)
--- a/
regress/lib/libcrypto/ocsp/ocsp_test.c
+++ b/
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 <beck@openbsd.org>
*
@@
-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()");