]> granicus.if.org Git - openssl/commitdiff
initialise i if n == 0
authorDr. Stephen Henson <steve@openssl.org>
Fri, 6 Apr 2012 17:36:40 +0000 (17:36 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 6 Apr 2012 17:36:40 +0000 (17:36 +0000)
(backport from HEAD)

ssl/s3_srvr.c

index a05fae4987f3526531b6f5a1c1f8e4dad7511271..cdbd281b8f45d3901055329c658102ba9433e7f1 100644 (file)
@@ -2260,6 +2260,8 @@ int ssl3_get_client_key_exchange(SSL *s)
                EVP_PKEY *skey = NULL;
                if (n)
                        n2s(p,i);
+               else
+                       i = 0;
                if (n && n != i+2)
                        {
                        if (!(s->options & SSL_OP_SSLEAY_080_CLIENT_DH_BUG))