1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

client: Add missing language tag in disconnect message

Fixes T74

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2017-11-16 12:10:41 +01:00
parent 7a65f7f028
commit 9fce33a2e3

View File

@@ -696,10 +696,11 @@ void ssh_disconnect(ssh_session session) {
if (session->socket != NULL && ssh_socket_is_open(session->socket)) { if (session->socket != NULL && ssh_socket_is_open(session->socket)) {
rc = ssh_buffer_pack(session->out_buffer, rc = ssh_buffer_pack(session->out_buffer,
"bds", "bdss",
SSH2_MSG_DISCONNECT, SSH2_MSG_DISCONNECT,
SSH2_DISCONNECT_BY_APPLICATION, SSH2_DISCONNECT_BY_APPLICATION,
"Bye Bye"); "Bye Bye",
""); /* language tag */
if (rc != SSH_OK){ if (rc != SSH_OK){
ssh_set_error_oom(session); ssh_set_error_oom(session);
goto error; goto error;