summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2006-11-14 01:12:08 +0000
committerwtchang%redhat.com <devnull@localhost>2006-11-14 01:12:08 +0000
commitfb10dd54061cacae6fe32cff11cdf665bc4133a4 (patch)
treee11064c37ab9b49bfc5754f53faea73bc7d21f49
parent4ab68c0bba230bc4dfe238810729281c2fd06342 (diff)
downloadnss-hg-fb10dd54061cacae6fe32cff11cdf665bc4133a4.tar.gz
Bugzilla Bug 359484: made the fix for bug 341707 work for the SSL2 client
hello case. r=nelsonb,alexei.volkov Tag: NSS_3_11_BRANCH
-rw-r--r--security/nss/lib/ssl/sslcon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/nss/lib/ssl/sslcon.c b/security/nss/lib/ssl/sslcon.c
index 70b270ae4..48935671d 100644
--- a/security/nss/lib/ssl/sslcon.c
+++ b/security/nss/lib/ssl/sslcon.c
@@ -3123,6 +3123,11 @@ ssl2_BeginClientHandshake(sslSocket *ss)
#if defined(NSS_ENABLE_ECC) && !defined(NSS_ECC_MORE_THAN_SUITE_B)
/* ensure we don't neogtiate ECC cipher suites with SSL2 hello */
ssl3_DisableECCSuites(ss, NULL); /* disable all ECC suites */
+ if (ss->cipherSpecs != NULL) {
+ PORT_Free(ss->cipherSpecs);
+ ss->cipherSpecs = NULL;
+ ss->sizeCipherSpecs = 0;
+ }
#endif
if (!ss->cipherSpecs) {