diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/d1_srtp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libssl/d1_srtp.c b/src/lib/libssl/d1_srtp.c index 70f9453f5f..793fa868d7 100644 --- a/src/lib/libssl/d1_srtp.c +++ b/src/lib/libssl/d1_srtp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_srtp.c,v 1.29 2021/06/11 15:28:13 landry Exp $ */ | 1 | /* $OpenBSD: d1_srtp.c,v 1.30 2022/01/28 13:11:56 inoguchi Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -204,7 +204,10 @@ ssl_ctx_make_profiles(const char *profiles_string, | |||
204 | 204 | ||
205 | if (!srtp_find_profile_by_name(ptr, &p, | 205 | if (!srtp_find_profile_by_name(ptr, &p, |
206 | col ? col - ptr : (int)strlen(ptr))) { | 206 | col ? col - ptr : (int)strlen(ptr))) { |
207 | sk_SRTP_PROTECTION_PROFILE_push(profiles, p); | 207 | if (!sk_SRTP_PROTECTION_PROFILE_push(profiles, p)) { |
208 | sk_SRTP_PROTECTION_PROFILE_free(profiles); | ||
209 | return 1; | ||
210 | } | ||
208 | } else { | 211 | } else { |
209 | SSLerrorx(SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE); | 212 | SSLerrorx(SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE); |
210 | sk_SRTP_PROTECTION_PROFILE_free(profiles); | 213 | sk_SRTP_PROTECTION_PROFILE_free(profiles); |