make shutdown error message unique to client used

pull/271/head
Jacob Barthelmeh 2020-07-22 09:47:00 -06:00
parent 217a7d6520
commit 1a7a80544d
3 changed files with 3 additions and 3 deletions

View File

@ -1076,7 +1076,7 @@ THREAD_RETURN WOLFSSH_THREAD client_test(void* args)
if (userPrivateKey != NULL)
free(userPrivateKey);
if (ret != WS_SUCCESS)
err_sys("Closing stream failed. Connection could have been closed by peer");
err_sys("Closing client stream failed. Connection could have been closed by peer");
#if defined(HAVE_ECC) && defined(FP_ECC) && defined(HAVE_THREAD_LS)
wc_ecc_fp_free(); /* free per thread cache */

View File

@ -435,7 +435,7 @@ THREAD_RETURN WOLFSSH_THREAD portfwd_worker(void* args)
ret = wolfSSH_shutdown(ssh);
if (ret != WS_SUCCESS)
err_sys("Closing stream failed.");
err_sys("Closing port forward stream failed.");
WCLOSESOCKET(sshFd);
WCLOSESOCKET(listenFd);

View File

@ -357,7 +357,7 @@ THREAD_RETURN WOLFSSH_THREAD scp_client(void* args)
wolfSSH_free(ssh);
wolfSSH_CTX_free(ctx);
if (ret != WS_SUCCESS)
err_sys("Closing stream failed. Connection could have been closed by peer");
err_sys("Closing scp stream failed. Connection could have been closed by peer");
#if defined(HAVE_ECC) && defined(FP_ECC) && defined(HAVE_THREAD_LS)
wc_ecc_fp_free(); /* free per thread cache */