summaryrefslogtreecommitdiffstats
path: root/ssl/t1_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-01-04 14:25:10 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-01-04 14:25:10 +0000
commit0c214e01535fb5e4d14f5fd24bd91b948f6c0535 (patch)
treed5b287dc116fa80c4dbc149c44fb3bb4876e527a /ssl/t1_lib.c
parent6c61cfbe03fdc8dd33a13c0691492485bca485a6 (diff)
Submitted by: Adam Langley <agl@chromium.org>
Reviewed by: steve Fix memory leaks.
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r--ssl/t1_lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 92cac13002..cc97258ae5 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -575,6 +575,12 @@ int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
sdata = data;
if (dsize > 0)
{
+ if (s->tlsext_ocsp_exts)
+ {
+ sk_X509_EXTENSION_pop_free(s->tlsext_ocsp_exts,
+ X509_EXTENSION_free);
+ }
+
s->tlsext_ocsp_exts =
d2i_X509_EXTENSIONS(NULL,
&sdata, dsize);