We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 524b5c6 commit 23a9333Copy full SHA for 23a9333
1 file changed
examples/scpclient/scpclient.c
@@ -313,7 +313,9 @@ THREAD_RETURN WOLFSSH_THREAD scp_client(void* args)
313
314
ret = wolfSSH_shutdown(ssh);
315
/* do not continue on with shutdown process if peer already disconnected */
316
- if (ret != WS_SOCKET_ERROR_E && wolfSSH_get_error(ssh) != WS_SOCKET_ERROR_E) {
+ if (ret != WS_CHANNEL_CLOSED && ret != WS_SOCKET_ERROR_E &&
317
+ wolfSSH_get_error(ssh) != WS_SOCKET_ERROR_E &&
318
+ wolfSSH_get_error(ssh) != WS_CHANNEL_CLOSED) {
319
if (ret != WS_SUCCESS) {
320
err_sys("Sending the shutdown messages failed.");
321
}
0 commit comments