artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab023ff
)
Avoid NULL deref on BIO_new{_mem_buf,}() failure.
author
tb
<tb@openbsd.org>
Fri, 22 Jan 2021 15:54:32 +0000
(15:54 +0000)
committer
tb
<tb@openbsd.org>
Fri, 22 Jan 2021 15:54:32 +0000
(15:54 +0000)
regress/lib/libssl/client/clienttest.c
patch
|
blob
|
history
diff --git
a/regress/lib/libssl/client/clienttest.c
b/regress/lib/libssl/client/clienttest.c
index
be9ebc1
..
51b2398
100644
(file)
--- a/
regress/lib/libssl/client/clienttest.c
+++ b/
regress/lib/libssl/client/clienttest.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: clienttest.c,v 1.2
6 2020/11/19 09:35:50
tb Exp $ */
+/* $OpenBSD: clienttest.c,v 1.2
7 2021/01/22 15:54:32
tb Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
*
@@
-456,8
+456,10
@@
client_hello_test(int testno, struct client_hello_test *cht)
SSL_CTX_free(ssl_ctx);
SSL_free(ssl);
- rbio->references = 1;
- wbio->references = 1;
+ if (rbio != NULL)
+ rbio->references = 1;
+ if (wbio != NULL)
+ wbio->references = 1;
BIO_free(rbio);
BIO_free(wbio);