mirror of https://github.com/wolfSSL/wolfssh.git
sanity check that handshake information can be used
parent
1342f25ce6
commit
8601a73026
|
@ -2531,7 +2531,7 @@ static int DoNewKeys(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
|
|||
(void)len;
|
||||
(void)idx;
|
||||
|
||||
if (ssh == NULL)
|
||||
if (ssh == NULL || ssh->handshake == NULL)
|
||||
ret = WS_BAD_ARGUMENT;
|
||||
|
||||
if (ret == WS_SUCCESS) {
|
||||
|
|
Loading…
Reference in New Issue