mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Minor improvement in ssl_tls13_keys.c
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
@ -111,7 +111,7 @@ static void ssl_tls1_3_hkdf_encode_label(
|
||||
|
||||
/* Add context value */
|
||||
*p++ = (unsigned char)( clen & 0xFF );
|
||||
if( ctx != NULL )
|
||||
if( clen != 0 )
|
||||
memcpy( p, ctx, clen );
|
||||
|
||||
/* Return total length to the caller. */
|
||||
|
Reference in New Issue
Block a user