mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Fix MSVC warning
We know the length of the ALPN string is always less than 255, so the cast to uint8_t is safe.
This commit is contained in:
		
							parent
							
								
									9a96fd7ac3
								
							
						
					
					
						commit
						f041f4e19c
					
				@ -11553,7 +11553,7 @@ int mbedtls_ssl_context_save( mbedtls_ssl_context *ssl,
 | 
			
		||||
#if defined(MBEDTLS_SSL_ALPN)
 | 
			
		||||
    {
 | 
			
		||||
        const uint8_t alpn_len = ssl->alpn_chosen
 | 
			
		||||
                               ? strlen( ssl->alpn_chosen )
 | 
			
		||||
                               ? (uint8_t) strlen( ssl->alpn_chosen )
 | 
			
		||||
                               : 0;
 | 
			
		||||
 | 
			
		||||
        used += 1 + alpn_len;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user