make sure eivlen is initialised
authorDr. Stephen Henson <steve@openssl.org>
Sat, 24 Sep 2011 23:06:20 +0000 (23:06 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 24 Sep 2011 23:06:20 +0000 (23:06 +0000)
ssl/s3_pkt.c

index eba442d..34a6ad7 100644 (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;