From: deraadt Date: Thu, 17 Jul 2014 23:50:07 +0000 (+0000) Subject: avoid errx(); Jonas Termansen X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=26552155961d13a39fca1363056dd87b6ce8a671;p=openbsd avoid errx(); Jonas Termansen --- diff --git a/lib/libssl/src/apps/openssl.c b/lib/libssl/src/apps/openssl.c index ae45d159338..5ac41e2035f 100644 --- a/lib/libssl/src/apps/openssl.c +++ b/lib/libssl/src/apps/openssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openssl.c,v 1.41 2014/07/12 19:31:21 jsing Exp $ */ +/* $OpenBSD: openssl.c,v 1.42 2014/07/17 23:50:07 deraadt Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -256,8 +256,10 @@ main(int argc, char **argv) arg.count = 0; bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); - if (bio_err == NULL) - errx(1, "failed to initialise bio_err"); + if (bio_err == NULL) { + fprintf(stderr, "openssl: failed to initialise bio_err"); + exit(1); + } CRYPTO_set_locking_callback(lock_dbg_cb);