projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d61f007
)
Gracefully free a NULL HANDSHAKE_RESULT
author
Emilia Kasper
<emilia@openssl.org>
Tue, 9 Aug 2016 15:08:59 +0000
(17:08 +0200)
committer
Emilia Kasper
<emilia@openssl.org>
Wed, 10 Aug 2016 12:41:21 +0000
(14:41 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
test/handshake_helper.c
patch
|
blob
|
history
diff --git
a/test/handshake_helper.c
b/test/handshake_helper.c
index ce530c2c0601d4a8c0587aab9699cbef0b3c9d64..3e7f12948e478bc6bb0540ead0fd1a68a67685a5 100644
(file)
--- a/
test/handshake_helper.c
+++ b/
test/handshake_helper.c
@@
-25,6
+25,8
@@
HANDSHAKE_RESULT *HANDSHAKE_RESULT_new()
void HANDSHAKE_RESULT_free(HANDSHAKE_RESULT *result)
{
+ if (result == NULL)
+ return;
OPENSSL_free(result->client_npn_negotiated);
OPENSSL_free(result->server_npn_negotiated);
OPENSSL_free(result->client_alpn_negotiated);