1
1

client: Add missing language tag in disconnect message

Fixes T74

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Andreas Schneider 2017-11-16 12:10:41 +01:00
родитель 7a65f7f028
Коммит 9fce33a2e3

Просмотреть файл

@ -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;