summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/s_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/s_client.c')
-rw-r--r--src/usr.bin/openssl/s_client.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/s_client.c b/src/usr.bin/openssl/s_client.c
index 15ebb0c0a7..41f6502325 100644
--- a/src/usr.bin/openssl/s_client.c
+++ b/src/usr.bin/openssl/s_client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_client.c,v 1.58 2022/02/03 17:44:04 tb Exp $ */ 1/* $OpenBSD: s_client.c,v 1.59 2022/11/11 17:07:39 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 *
@@ -923,11 +923,9 @@ s_client_main(int argc, char **argv)
923 struct sockaddr_storage peer; 923 struct sockaddr_storage peer;
924 int peerlen = sizeof(peer); 924 int peerlen = sizeof(peer);
925 925
926 if (single_execution) { 926 if (pledge("stdio cpath wpath rpath inet dns tty", NULL) == -1) {
927 if (pledge("stdio cpath wpath rpath inet dns tty", NULL) == -1) { 927 perror("pledge");
928 perror("pledge"); 928 exit(1);
929 exit(1);
930 }
931 } 929 }
932 930
933 memset(&s_client_config, 0, sizeof(s_client_config)); 931 memset(&s_client_config, 0, sizeof(s_client_config));