Avoid resource leaks in do_ssl3_write
Thanks Matt for pointing on it
@@ -876,7 +876,7 @@ int do_ssl3_write(SSL_CONNECTION *s, int type, const unsigned char *buf,
eivlen = EVP_CIPHER_CTX_get_iv_length(s->enc_write_ctx);
if (eivlen < 0) {
SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_LIBRARY_BUG);
- return -1;
+ goto err;
}
if (eivlen <= 1)
eivlen = 0;
