summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/dh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/dh.c')
-rw-r--r--src/usr.bin/openssl/dh.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/dh.c b/src/usr.bin/openssl/dh.c
index c2c5d689e1..200233c0f2 100644
--- a/src/usr.bin/openssl/dh.c
+++ b/src/usr.bin/openssl/dh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh.c,v 1.13 2022/01/14 09:21:54 tb Exp $ */ 1/* $OpenBSD: dh.c,v 1.14 2022/11/11 17:07:38 joshua Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -158,11 +158,9 @@ dh_main(int argc, char **argv)
158 BIO *in = NULL, *out = NULL; 158 BIO *in = NULL, *out = NULL;
159 int ret = 1; 159 int ret = 1;
160 160
161 if (single_execution) { 161 if (pledge("stdio cpath wpath rpath", NULL) == -1) {
162 if (pledge("stdio cpath wpath rpath", NULL) == -1) { 162 perror("pledge");
163 perror("pledge"); 163 exit(1);
164 exit(1);
165 }
166 } 164 }
167 165
168 memset(&dh_config, 0, sizeof(dh_config)); 166 memset(&dh_config, 0, sizeof(dh_config));