diff options
author | 2014-04-24 12:22:22 +0000 | |
---|---|---|
committer | 2014-04-24 12:22:22 +0000 | |
commit | e31e7ff5632d3b2531531ee717d286161aa02297 (patch) | |
tree | f855673edef5e98e3916651342813273cbda888d /lib/libssl/src/apps/errstr.c | |
parent | KNF (diff) | |
download | wireguard-openbsd-e31e7ff5632d3b2531531ee717d286161aa02297.tar.xz wireguard-openbsd-e31e7ff5632d3b2531531ee717d286161aa02297.zip |
When OPENSSL_C is not defined, apps_startup becomes a
signal(SIGPIPE, SIG_IGN) and apps_shutdown is a no-op. So just do that
instead.
ok beck@
Diffstat (limited to 'lib/libssl/src/apps/errstr.c')
-rw-r--r-- | lib/libssl/src/apps/errstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/apps/errstr.c b/lib/libssl/src/apps/errstr.c index 71470847043..9766a54b089 100644 --- a/lib/libssl/src/apps/errstr.c +++ b/lib/libssl/src/apps/errstr.c @@ -75,7 +75,7 @@ errstr_main(int argc, char **argv) char buf[256]; unsigned long l; - apps_startup(); + signal(SIGPIPE, SIG_IGN); if (bio_err == NULL) if ((bio_err = BIO_new(BIO_s_file())) != NULL) @@ -110,6 +110,6 @@ errstr_main(int argc, char **argv) ret++; } } - apps_shutdown(); + return (ret); } |