Fix building with no-srtp

RT3638

Reviewed-by: Emilia Käsper <emilia@openssl.org>
This commit is contained in:
Piotr Sikora
2014-12-22 11:15:51 +00:00
committed by Matt Caswell
parent cb2bc0543a
commit e783bae26a
4 changed files with 32 additions and 0 deletions

View File

@@ -631,8 +631,10 @@ void SSL_free(SSL *s)
OPENSSL_free(s->next_proto_negotiated);
#endif
#ifndef OPENSSL_NO_SRTP
if (s->srtp_profiles)
sk_SRTP_PROTECTION_PROFILE_free(s->srtp_profiles);
#endif
OPENSSL_free(s);
}
@@ -2145,8 +2147,10 @@ void SSL_CTX_free(SSL_CTX *a)
a->comp_methods = NULL;
#endif
#ifndef OPENSSL_NO_SRTP
if (a->srtp_profiles)
sk_SRTP_PROTECTION_PROFILE_free(a->srtp_profiles);
#endif
#ifndef OPENSSL_NO_PSK
if (a->psk_identity_hint)