Minor improvement in ssl_tls13_keys.c
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
ab2ce23f92
commit
00debc734b
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue