summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/version.c')
-rw-r--r--src/usr.bin/openssl/version.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/version.c b/src/usr.bin/openssl/version.c
index f47369df9d..e096f89969 100644
--- a/src/usr.bin/openssl/version.c
+++ b/src/usr.bin/openssl/version.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: version.c,v 1.6 2015/08/22 16:36:05 jsing Exp $ */ 1/* $OpenBSD: version.c,v 1.7 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 *
@@ -213,6 +213,11 @@ version_usage(void)
213int 213int
214version_main(int argc, char **argv) 214version_main(int argc, char **argv)
215{ 215{
216 if (single_execution) {
217 if (pledge("stdio", NULL) == -1)
218 perror("pledge");
219 }
220
216 memset(&version_config, 0, sizeof(version_config)); 221 memset(&version_config, 0, sizeof(version_config));
217 222
218 if (options_parse(argc, argv, version_options, NULL, NULL) != 0) { 223 if (options_parse(argc, argv, version_options, NULL, NULL) != 0) {