summaryrefslogtreecommitdiffstats
path: root/ssl/d1_srtp.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-10-06 19:17:54 +0100
committerMatt Caswell <matt@openssl.org>2016-11-04 12:09:45 +0000
commit8b0e934afbdf8ca61866263c507d4b653135952d (patch)
tree65f12cea611a30bfbade87ad0e9838a2f8337128 /ssl/d1_srtp.c
parente3c9727fece7bd73469e14796f579c4dc5209cdb (diff)
Fix some missed size_t updates
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/d1_srtp.c')
-rw-r--r--ssl/d1_srtp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/d1_srtp.c b/ssl/d1_srtp.c
index bcefb9ec3a..718f417d85 100644
--- a/ssl/d1_srtp.c
+++ b/ssl/d1_srtp.c
@@ -40,7 +40,7 @@ static SRTP_PROTECTION_PROFILE srtp_known_profiles[] = {
};
static int find_profile_by_name(char *profile_name,
- SRTP_PROTECTION_PROFILE **pptr, unsigned len)
+ SRTP_PROTECTION_PROFILE **pptr, size_t len)
{
SRTP_PROTECTION_PROFILE *p;
@@ -76,7 +76,8 @@ static int ssl_ctx_make_profiles(const char *profiles_string,
do {
col = strchr(ptr, ':');
- if (!find_profile_by_name(ptr, &p, col ? col - ptr : (int)strlen(ptr))) {
+ if (!find_profile_by_name(ptr, &p, col ? (size_t)(col - ptr)
+ : strlen(ptr))) {
if (sk_SRTP_PROTECTION_PROFILE_find(profiles, p) >= 0) {
SSLerr(SSL_F_SSL_CTX_MAKE_PROFILES,
SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST);