aboutsummaryrefslogtreecommitdiff
path: root/test/ssltestlib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-09-26 12:04:23 +0100
committerMatt Caswell <matt@openssl.org>2016-09-26 17:26:50 +0100
commitfa454945cf2855fed452ff9bdb1876096bc07beb (patch)
treeaa3e9b327ddc92d18110629b09d1d3c0691a7c57 /test/ssltestlib.c
parent8ff70f3326983360c6f6306a1cd2238ef92d1f26 (diff)
downloadopenssl-fa454945cf2855fed452ff9bdb1876096bc07beb.zip
openssl-fa454945cf2855fed452ff9bdb1876096bc07beb.tar.gz
openssl-fa454945cf2855fed452ff9bdb1876096bc07beb.tar.bz2
Fix some mem leaks in sslapitest
A mem leak could occur on an error path. Also the mempacket BIO_METHOD needs to be cleaned up, because of the newly added DTLS test. Also fixed a double semi-colon in ssltestlib.c Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/ssltestlib.c')
-rw-r--r--test/ssltestlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ssltestlib.c b/test/ssltestlib.c
index 9fcd98d..655fc05 100644
--- a/test/ssltestlib.c
+++ b/test/ssltestlib.c
@@ -587,7 +587,7 @@ int create_ssl_objects(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl,
if (SSL_is_dtls(clientssl)) {
s_to_c_bio = BIO_new(bio_s_mempacket_test());
- c_to_s_bio = BIO_new(bio_s_mempacket_test());;
+ c_to_s_bio = BIO_new(bio_s_mempacket_test());
} else {
s_to_c_bio = BIO_new(BIO_s_mem());
c_to_s_bio = BIO_new(BIO_s_mem());