diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index af539a0ea1..05b49a21e3 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -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;