diff options
Diffstat (limited to 'src/usr.bin/openssl/ts.c')
-rw-r--r-- | src/usr.bin/openssl/ts.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/ts.c b/src/usr.bin/openssl/ts.c index 24301b69a5..05387de130 100644 --- a/src/usr.bin/openssl/ts.c +++ b/src/usr.bin/openssl/ts.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ts.c,v 1.24 2022/09/11 18:08:17 tb Exp $ */ | 1 | /* $OpenBSD: ts.c,v 1.25 2022/11/11 17:07:39 joshua Exp $ */ |
2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL |
3 | * project 2002. | 3 | * project 2002. |
4 | */ | 4 | */ |
@@ -377,11 +377,9 @@ ts_main(int argc, char **argv) | |||
377 | CONF *conf = NULL; | 377 | CONF *conf = NULL; |
378 | char *password = NULL; /* Password itself. */ | 378 | char *password = NULL; /* Password itself. */ |
379 | 379 | ||
380 | if (single_execution) { | 380 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
381 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { | 381 | perror("pledge"); |
382 | perror("pledge"); | 382 | exit(1); |
383 | exit(1); | ||
384 | } | ||
385 | } | 383 | } |
386 | 384 | ||
387 | memset(&ts_config, 0, sizeof(ts_config)); | 385 | memset(&ts_config, 0, sizeof(ts_config)); |