mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 10:55:38 +01:00
Add check for missing ssl_set_client_transport_id()
This commit is contained in:
parent
a64acd4f84
commit
29ad7e8fc0
@ -114,7 +114,7 @@ int ssl_cookie_write( void *p_ctx,
|
||||
unsigned char hmac_out[HVR_MD_LEN];
|
||||
ssl_cookie_ctx *ctx = (ssl_cookie_ctx *) p_ctx;
|
||||
|
||||
if( ctx == NULL )
|
||||
if( ctx == NULL || cli_id == NULL )
|
||||
return( POLARSSL_ERR_SSL_BAD_INPUT_DATA );
|
||||
|
||||
if( (size_t)( end - *p ) < HVR_MD_USE )
|
||||
|
Loading…
Reference in New Issue
Block a user