diff options
Diffstat (limited to 'src/usr.bin/openssl/ocsp.c')
-rw-r--r-- | src/usr.bin/openssl/ocsp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/ocsp.c b/src/usr.bin/openssl/ocsp.c index f954d9697b..026bd49b0a 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.21 2020/10/13 18:25:35 tb Exp $ */ | 1 | /* $OpenBSD: ocsp.c,v 1.22 2022/11/11 17:07:39 joshua 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 | */ |
@@ -750,11 +750,9 @@ ocsp_main(int argc, char **argv) | |||
750 | X509 *rca_cert = NULL; | 750 | X509 *rca_cert = NULL; |
751 | CA_DB *rdb = NULL; | 751 | CA_DB *rdb = NULL; |
752 | 752 | ||
753 | if (single_execution) { | 753 | if (pledge("stdio cpath wpath rpath inet dns tty", NULL) == -1) { |
754 | if (pledge("stdio cpath wpath rpath inet dns tty", NULL) == -1) { | 754 | perror("pledge"); |
755 | perror("pledge"); | 755 | exit(1); |
756 | exit(1); | ||
757 | } | ||
758 | } | 756 | } |
759 | 757 | ||
760 | memset(&ocsp_config, 0, sizeof(ocsp_config)); | 758 | memset(&ocsp_config, 0, sizeof(ocsp_config)); |