From 8b0e934afbdf8ca61866263c507d4b653135952d Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 6 Oct 2016 19:17:54 +0100 Subject: Fix some missed size_t updates Reviewed-by: Rich Salz --- ssl/d1_srtp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ssl/d1_srtp.c') 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); -- cgit v1.2.3