aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index 6343dc6a..9fc3e1d7 100644
--- a/src/client.c
+++ b/src/client.c
@@ -696,10 +696,11 @@ void ssh_disconnect(ssh_session session) {
if (session->socket != NULL && ssh_socket_is_open(session->socket)) {
rc = ssh_buffer_pack(session->out_buffer,
- "bds",
+ "bdss",
SSH2_MSG_DISCONNECT,
SSH2_DISCONNECT_BY_APPLICATION,
- "Bye Bye");
+ "Bye Bye",
+ ""); /* language tag */
if (rc != SSH_OK){
ssh_set_error_oom(session);
goto error;