check NULL to match docs
This commit is contained in:
parent
78b8da9949
commit
b9540bf579
@ -797,6 +797,9 @@ void CyaSSL_FreeArrays(CYASSL* ssl)
|
||||
|
||||
const byte* CyaSSL_GetMacSecret(CYASSL* ssl, int verify)
|
||||
{
|
||||
if (ssl == NULL)
|
||||
return NULL;
|
||||
|
||||
if ( (ssl->options.side == CYASSL_CLIENT_END && !verify) ||
|
||||
(ssl->options.side == CYASSL_SERVER_END && verify) )
|
||||
return ssl->keys.client_write_MAC_secret;
|
||||
|
Loading…
Reference in New Issue
Block a user