diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-01-04 14:25:28 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-01-04 14:25:28 +0000 |
commit | 1cb4d65b87ef7eafe6a7f5594276caf976303a78 (patch) | |
tree | ee223bacaa010961a7279000b1d5aef6a148b6d4 /ssl/t1_lib.c | |
parent | 7b2dd292bc755de87199bbb47418c0c6083ce74e (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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 82d490a94f..4734c37e0a 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1247,6 +1247,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); |