summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeck <>2020-10-08 23:46:57 +0000
committerbeck <>2020-10-08 23:46:57 +0000
commit2424def27f18b5d0b37aefa364571fdba14bb57d (patch)
treecdd44bcd0bc16d303a259ca01afebc671b2ae09a
parentd3e210edd3123569c0204b0e2caffe79ab165b67 (diff)
downloadopenbsd-2424def27f18b5d0b37aefa364571fdba14bb57d.tar.gz
openbsd-2424def27f18b5d0b37aefa364571fdba14bb57d.tar.bz2
openbsd-2424def27f18b5d0b37aefa364571fdba14bb57d.zip
set SO_REUSEADDR on the server socket when we play oscp server.
ok inoguchi@ tb@ deraadt@
-rw-r--r--src/usr.bin/openssl/ocsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/ocsp.c b/src/usr.bin/openssl/ocsp.c
index 8eac2dcd11..3f01416053 100644
--- a/src/usr.bin/openssl/ocsp.c
+++ b/src/usr.bin/openssl/ocsp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp.c,v 1.19 2020/09/09 13:57:36 inoguchi Exp $ */ 1/* $OpenBSD: ocsp.c,v 1.20 2020/10/08 23:46:57 beck Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -1328,6 +1328,7 @@ init_responder(char *port)
1328 acbio = BIO_new_accept(port); 1328 acbio = BIO_new_accept(port);
1329 if (!acbio) 1329 if (!acbio)
1330 goto err; 1330 goto err;
1331 BIO_set_bind_mode(acbio, BIO_BIND_REUSEADDR);
1331 BIO_set_accept_bios(acbio, bufbio); 1332 BIO_set_accept_bios(acbio, bufbio);
1332 bufbio = NULL; 1333 bufbio = NULL;
1333 1334