diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-07-17 23:50:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-07-17 23:50:08 +0000 |
commit | 848fb451499011589808fc46bddef687c7b4c6fa (patch) | |
tree | 8408feef4d068cdba2513ddea530fdb17ac15487 /lib | |
parent | f6ee4486c79f84989a439082b1853506bc2cac6a (diff) |
avoid errx(); Jonas Termansen
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/src/apps/openssl.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); |