From 96d8583144cdee295a4fa93d4f64cda230c1342e Mon Sep 17 00:00:00 2001 From: mestre <> Date: Thu, 2 Nov 2017 00:31:49 +0000 Subject: openssl s_time -connect host:port needs dns promise for pledge(2) otherwise it will SIGABRT Bug found by Scott Cheloha OK deraadt@ --- src/usr.bin/openssl/s_time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usr.bin/openssl/s_time.c') 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 @@ -/* $OpenBSD: s_time.c,v 1.17 2017/01/20 08:57:12 deraadt Exp $ */ +/* $OpenBSD: s_time.c,v 1.18 2017/11/02 00:31:49 mestre Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -254,7 +254,7 @@ s_time_main(int argc, char **argv) int ver; if (single_execution) { - if (pledge("stdio rpath inet", NULL) == -1) { + if (pledge("stdio rpath inet dns", NULL) == -1) { perror("pledge"); exit(1); } -- cgit v1.2.3-55-g6feb