mirror of https://github.com/wolfSSL/wolfssh.git
sanity check that WOLFSSH struct has handshake info
parent
3994d0f538
commit
7911c70349
|
@ -2229,7 +2229,8 @@ static int DoKexDhInit(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
|
||||||
word32 begin;
|
word32 begin;
|
||||||
int ret = WS_SUCCESS;
|
int ret = WS_SUCCESS;
|
||||||
|
|
||||||
if (ssh == NULL || buf == NULL || len == 0 || idx == NULL)
|
if (ssh == NULL || ssh->handshake == NULL || buf == NULL || len == 0 ||
|
||||||
|
idx == NULL)
|
||||||
ret = WS_BAD_ARGUMENT;
|
ret = WS_BAD_ARGUMENT;
|
||||||
|
|
||||||
if (ret == WS_SUCCESS) {
|
if (ret == WS_SUCCESS) {
|
||||||
|
|
Loading…
Reference in New Issue