mirror of https://github.com/wolfSSL/wolfssh.git
commit
0ca04e4248
|
@ -1500,8 +1500,15 @@ static int GetInputData(WOLFSSH* ssh, word32 size)
|
||||||
return WS_FATAL_ERROR;
|
return WS_FATAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in >= 0) {
|
||||||
ssh->inputBuffer.length += in;
|
ssh->inputBuffer.length += in;
|
||||||
inSz -= in;
|
inSz -= in;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
/* all other unexpected negative values is a failure case */
|
||||||
|
ssh->error = WS_FATAL_ERROR;
|
||||||
|
return WS_FATAL_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
} while (ssh->inputBuffer.length < size);
|
} while (ssh->inputBuffer.length < size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue