initialise i if n == 0

(backport from HEAD)
This commit is contained in:
Dr. Stephen Henson 2012-04-06 17:36:40 +00:00
parent a068a1d0e3
commit 7493bcc659

View 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))