sanity check that handshake information can be used

pull/82/head
Jacob Barthelmeh 2018-07-02 15:23:14 -06:00
parent 1342f25ce6
commit 8601a73026
1 changed files with 1 additions and 1 deletions

View File

@ -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) {