=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/genpkey.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/openssl/genpkey.c 2015/10/17 07:51:10 1.7 --- src/usr.bin/openssl/genpkey.c 2015/10/17 15:00:11 1.8 *************** *** 1,4 **** ! /* $OpenBSD: genpkey.c,v 1.7 2015/10/17 07:51:10 semarie Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006 */ --- 1,4 ---- ! /* $OpenBSD: genpkey.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006 */ *************** *** 87,94 **** int do_param = 0; if (single_execution) { ! if (pledge("stdio rpath wpath cpath tty", NULL) == -1) perror("pledge"); } outformat = FORMAT_PEM; --- 87,96 ---- int do_param = 0; if (single_execution) { ! if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { perror("pledge"); + exit(1); + } } outformat = FORMAT_PEM;