summaryrefslogtreecommitdiff
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2011-11-15 23:02:16 +0000
committerBen Laurie <ben@openssl.org>2011-11-15 23:02:16 +0000
commit060a38a2c06145df02d04af20e31bacf30f192e2 (patch)
treec6af6dd58887d79dfec6ed5cec8973244a28df64 /ssl/ssl_lib.c
parent58402976b4ebbcdac63e2b2f3afe8b5fe261cf5d (diff)
downloadopenssl-new-060a38a2c06145df02d04af20e31bacf30f192e2.tar.gz
Add DTLS-SRTP.
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 596d9b758b..a61cd1f0dc 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -594,6 +594,9 @@ void SSL_free(SSL *s)
OPENSSL_free(s->next_proto_negotiated);
#endif
+ if (s->srtp_profiles)
+ sk_SRTP_PROTECTION_PROFILE_free(s->srtp_profiles);
+
OPENSSL_free(s);
}
@@ -1932,6 +1935,9 @@ void SSL_CTX_free(SSL_CTX *a)
a->comp_methods = NULL;
#endif
+ if (a->srtp_profiles)
+ sk_SRTP_PROTECTION_PROFILE_free(a->srtp_profiles);
+
#ifndef OPENSSL_NO_PSK
if (a->psk_identity_hint)
OPENSSL_free(a->psk_identity_hint);