artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b81e7
)
Use ERR_print_error_fp() to avoid leaking a BIO in fatal()
author
tb
<tb@openbsd.org>
Wed, 7 Apr 2021 17:21:40 +0000
(17:21 +0000)
committer
tb
<tb@openbsd.org>
Wed, 7 Apr 2021 17:21:40 +0000
(17:21 +0000)
regress/lib/libcrypto/pkcs7/pkcs7test.c
patch
|
blob
|
history
diff --git
a/regress/lib/libcrypto/pkcs7/pkcs7test.c
b/regress/lib/libcrypto/pkcs7/pkcs7test.c
index
5a72586
..
28e0f67
100644
(file)
--- a/
regress/lib/libcrypto/pkcs7/pkcs7test.c
+++ b/
regress/lib/libcrypto/pkcs7/pkcs7test.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pkcs7test.c,v 1.
4 2018/11/10 02:23:28 jsing Exp $
*/
+/* $OpenBSD: pkcs7test.c,v 1.
5 2021/04/07 17:21:40 tb Exp $
*/
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@
-103,7
+103,7
@@
static void
fatal(const char *msg)
{
warnx("%s", msg);
- ERR_print_errors
(BIO_new_fd(STDERR_FILENO, 0)
);
+ ERR_print_errors
_fp(stderr
);
exit(1);
}