Skip to content

Commit 3f1e96e

Browse files
set return error with scp failure
1 parent 563e6c4 commit 3f1e96e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/wolfscp.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,11 @@ int ReceiveScpConfirmation(WOLFSSH* ssh)
15721572
"scp error: peer sent error confirmation (code: %d)",
15731573
msg[0]);
15741574
ret = WS_FATAL_ERROR;
1575+
1576+
/* SCP peer signaled a failure, propogate the error back
1577+
* to the caller. If not set here WS_CHAN_RXD could be
1578+
* returned. */
1579+
ssh->error = ret;
15751580
break;
15761581
}
15771582
}

0 commit comments

Comments
 (0)