From 59af8944cb97f5a58420e3af507de8a1a7c31256 Mon Sep 17 00:00:00 2001 From: toddouska Date: Mon, 18 Feb 2013 15:11:33 -0800 Subject: [PATCH] fix opensslextra sb issue --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 3c6689f56..8b820155f 100644 --- a/src/internal.c +++ b/src/internal.c @@ -7298,6 +7298,7 @@ int SetCipherList(Suites* s, const char* list) &ssl->buffers.serverDH_Pub.length); FreeDhKey(&dhKey); + InitRsaKey(&rsaKey, ssl->heap); if (ret == 0) { length = LENGTH_SZ * 3; /* p, g, pub */ length += ssl->buffers.serverDH_P.length + @@ -7313,7 +7314,6 @@ int SetCipherList(Suites* s, const char* list) if (!ssl->buffers.key.buffer) return NO_PRIVATE_KEY; - InitRsaKey(&rsaKey, ssl->heap); ret = RsaPrivateKeyDecode(ssl->buffers.key.buffer, &i, &rsaKey, ssl->buffers.key.length); if (ret == 0) {