mirror of https://github.com/wolfSSL/wolfssh.git
commit
27f5be3db7
|
@ -868,10 +868,10 @@ int wolfSSH_shutdown(WOLFSSH* ssh)
|
||||||
ret = SendChannelEof(ssh, ssh->channelList->peerChannel);
|
ret = SendChannelEof(ssh, ssh->channelList->peerChannel);
|
||||||
|
|
||||||
if (ret == WS_SUCCESS)
|
if (ret == WS_SUCCESS)
|
||||||
ret = SendChannelClose(ssh, ssh->channelList->peerChannel);
|
ret = SendChannelExit(ssh, ssh->channelList->peerChannel, 0);
|
||||||
|
|
||||||
if (ret == WS_SUCCESS)
|
if (ret == WS_SUCCESS)
|
||||||
ret = SendDisconnect(ssh, WOLFSSH_DISCONNECT_BY_APPLICATION);
|
ret = SendChannelClose(ssh, ssh->channelList->peerChannel);
|
||||||
|
|
||||||
if (ssh != NULL && ssh->channelList == NULL) {
|
if (ssh != NULL && ssh->channelList == NULL) {
|
||||||
WLOG(WS_LOG_DEBUG, "channel list was already removed");
|
WLOG(WS_LOG_DEBUG, "channel list was already removed");
|
||||||
|
|
|
@ -85,7 +85,7 @@ int DoScpSink(WOLFSSH* ssh)
|
||||||
|
|
||||||
if ( (ret = ReceiveScpMessage(ssh)) < WS_SUCCESS) {
|
if ( (ret = ReceiveScpMessage(ssh)) < WS_SUCCESS) {
|
||||||
if (ret == WS_EOF) {
|
if (ret == WS_EOF) {
|
||||||
ret = WS_SUCCESS;
|
ret = wolfSSH_shutdown(ssh);
|
||||||
ssh->scpState = SCP_DONE;
|
ssh->scpState = SCP_DONE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue