diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 63536754c..33be6badb 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -754,6 +754,8 @@ static int do_ssl3_write(SSL *s, int type, const unsigned char *buf, /* Need explicit part of IV for GCM mode */ else if (mode == EVP_CIPH_GCM_MODE) eivlen = EVP_GCM_TLS_EXPLICIT_IV_LEN; + else + eivlen = 0; } else eivlen = 0;