diff options
author | Matt Caswell <matt@openssl.org> | 2016-09-26 13:04:23 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-09-26 18:26:50 +0200 |
commit | fa454945cf2855fed452ff9bdb1876096bc07beb (patch) | |
tree | aa3e9b327ddc92d18110629b09d1d3c0691a7c57 /test/ssltestlib.c | |
parent | Add a basic test for BN_bn2dec. (diff) | |
download | openssl-fa454945cf2855fed452ff9bdb1876096bc07beb.tar.xz openssl-fa454945cf2855fed452ff9bdb1876096bc07beb.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ssltestlib.c b/test/ssltestlib.c index 9fcd98de7d..655fc05cb2 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()); |