summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/errstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/errstr.c')
-rw-r--r--src/usr.bin/openssl/errstr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/errstr.c b/src/usr.bin/openssl/errstr.c
index 9cf7bfba4b..7bd97d99b0 100644
--- a/src/usr.bin/openssl/errstr.c
+++ b/src/usr.bin/openssl/errstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: errstr.c,v 1.4 2015/08/22 16:36:05 jsing Exp $ */ 1/* $OpenBSD: errstr.c,v 1.5 2015/10/10 22:28:51 doug 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 *
@@ -98,6 +98,11 @@ errstr_main(int argc, char **argv)
98 char buf[256]; 98 char buf[256];
99 int ret = 0; 99 int ret = 0;
100 100
101 if (single_execution) {
102 if (pledge("stdio rpath", NULL) == -1)
103 perror("pledge");
104 }
105
101 memset(&errstr_config, 0, sizeof(errstr_config)); 106 memset(&errstr_config, 0, sizeof(errstr_config));
102 107
103 if (options_parse(argc, argv, errstr_options, NULL, &argsused) != 0) { 108 if (options_parse(argc, argv, errstr_options, NULL, &argsused) != 0) {