summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/dh.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/openssl/dh.c')
-rw-r--r--usr.bin/openssl/dh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/openssl/dh.c b/usr.bin/openssl/dh.c
index 7e8d65d1f62..e3d8eca5f9c 100644
--- a/usr.bin/openssl/dh.c
+++ b/usr.bin/openssl/dh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dh.c,v 1.7 2015/10/10 22:28:51 doug Exp $ */
+/* $OpenBSD: dh.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -159,8 +159,10 @@ dh_main(int argc, char **argv)
int ret = 1;
if (single_execution) {
- if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
perror("pledge");
+ exit(1);
+ }
}
memset(&dh_config, 0, sizeof(dh_config));