diff options
author | mestre <> | 2017-11-02 00:31:49 +0000 |
---|---|---|
committer | mestre <> | 2017-11-02 00:31:49 +0000 |
commit | 96d8583144cdee295a4fa93d4f64cda230c1342e (patch) | |
tree | 04ca783a0eed1496a1ecb40567d16b61b7213f11 /src/usr.bin/openssl/s_time.c | |
parent | 2ef9f592feb50878d40c2acef2df0a3231fb9899 (diff) | |
download | openbsd-96d8583144cdee295a4fa93d4f64cda230c1342e.tar.gz openbsd-96d8583144cdee295a4fa93d4f64cda230c1342e.tar.bz2 openbsd-96d8583144cdee295a4fa93d4f64cda230c1342e.zip |
openssl s_time -connect host:port needs dns promise for pledge(2) otherwise it
will SIGABRT
Bug found by Scott Cheloha <scottcheloha at gmail.com>
OK deraadt@
Diffstat (limited to 'src/usr.bin/openssl/s_time.c')
-rw-r--r-- | src/usr.bin/openssl/s_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/s_time.c b/src/usr.bin/openssl/s_time.c index 3644e108f8..e7a1ef7b63 100644 --- a/src/usr.bin/openssl/s_time.c +++ b/src/usr.bin/openssl/s_time.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_time.c,v 1.17 2017/01/20 08:57:12 deraadt Exp $ */ | 1 | /* $OpenBSD: s_time.c,v 1.18 2017/11/02 00:31:49 mestre 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 | * |
@@ -254,7 +254,7 @@ s_time_main(int argc, char **argv) | |||
254 | int ver; | 254 | int ver; |
255 | 255 | ||
256 | if (single_execution) { | 256 | if (single_execution) { |
257 | if (pledge("stdio rpath inet", NULL) == -1) { | 257 | if (pledge("stdio rpath inet dns", NULL) == -1) { |
258 | perror("pledge"); | 258 | perror("pledge"); |
259 | exit(1); | 259 | exit(1); |
260 | } | 260 | } |