Free any existing SRTP connection profile
authorMatt Caswell <matt@openssl.org>
Thu, 5 May 2016 19:59:03 +0000 (20:59 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 9 May 2016 09:25:34 +0000 (10:25 +0100)
commitfbdf0299dc98bc611d854c0a62c6ab1810d856fc
treed9eb0e78bd9981705333abe98fb6fac5c0bc790d
parent9921b7b6a2b4cf8fc57213cf477275fc038fbfd1
Free any existing SRTP connection profile

When setting a new SRTP connection profile using
SSL_CTX_set_tlsext_use_srtp() or SSL_set_tlsext_use_srtp() we should
free any existing profile first to avoid a memory leak.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
ssl/d1_srtp.c