From de2b5b74393f15d3355a016d4c45ddee67626276 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 22 Feb 2012 15:03:44 +0000 Subject: [PATCH] initialise i if n == 0 --- ssl/s3_srvr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index c5606b2d0f..4b483c9baf 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -2270,6 +2270,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)) -- 2.25.1