diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2017-11-16 12:10:41 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-11-16 12:10:41 +0100 |
commit | 9fce33a2e3322762d4bc2d0d764df142e0f8c860 (patch) | |
tree | eb1eb59c563ab9bb80f84789c707ee659d4018cf /src | |
parent | 7a65f7f0280662455121e2484a776e392f2cee34 (diff) | |
download | libssh-9fce33a2e3322762d4bc2d0d764df142e0f8c860.tar.gz libssh-9fce33a2e3322762d4bc2d0d764df142e0f8c860.tar.xz libssh-9fce33a2e3322762d4bc2d0d764df142e0f8c860.zip |
client: Add missing language tag in disconnect message
Fixes T74
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/client.c | 5 |
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; |