summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-11-17 17:37:23 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-11-17 17:37:23 +0000
commit7d5686d35519faaab66b0837f0195dabe32925f7 (patch)
tree2a8e258fd289afc2d6cab4cc60857066123d8b03 /ssl
parent732d31beeeb2e2e9f44d05da8387cfeca06b91b8 (diff)
Don't assume a decode error if session tlsext_ecpointformatlist is not NULL: it can be legitimately set elsewhere.
Diffstat (limited to 'ssl')
-rw-r--r--ssl/t1_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 9684280d17..cdb55bc276 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -816,8 +816,8 @@ int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
{
if(s->session->tlsext_ecpointformatlist)
{
- *al = TLS1_AD_DECODE_ERROR;
- return 0;
+ OPENSSL_free(s->session->tlsext_ecpointformatlist);
+ s->session->tlsext_ecpointformatlist = NULL;
}
s->session->tlsext_ecpointformatlist_length = 0;
if ((s->session->tlsext_ecpointformatlist = OPENSSL_malloc(ecpointformatlist_length)) == NULL)