make sure eivlen is initialised

This commit is contained in:
Dr. Stephen Henson 2011-09-24 23:06:35 +00:00
parent 1fe83b4afe
commit e53113b8ac

View File

@ -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;