account for partial send cases

pull/532/head
JacobBarthelmeh 2023-07-05 10:47:06 -07:00
parent 469efd6abf
commit 9d5d871771
1 changed files with 2 additions and 1 deletions

View File

@ -2215,7 +2215,8 @@ int wolfSSH_SendPacket(WOLFSSH* ssh)
sent = ssh->ctx->ioSendCb(ssh,
ssh->outputBuffer.buffer + ssh->outputBuffer.idx,
ssh->outputBuffer.length, ssh->ioWriteCtx);
ssh->outputBuffer.length - ssh->outputBuffer.idx,
ssh->ioWriteCtx);
if (sent < 0) {
switch (sent) {