diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h index 7e49e0ba0..2f305e5ec 100644 --- a/include/mbedtls/ssl_internal.h +++ b/include/mbedtls/ssl_internal.h @@ -1739,12 +1739,11 @@ static inline unsigned int mbedtls_ssl_conf_get_ems_enforced( * This function must not be called multiple times without manually * inspecting and clearing ssl->pending_fatal_alert_msg in between. */ -MBEDTLS_ALWAYS_INLINE static inline int mbedtls_ssl_pend_fatal_alert( +MBEDTLS_ALWAYS_INLINE static inline void mbedtls_ssl_pend_fatal_alert( mbedtls_ssl_context *ssl, unsigned char message ) { ssl->pend_alert_msg = message; - return( 0 ); } #endif /* ssl_internal.h */