Commit 15a5d50f authored by Niels Möller's avatar Niels Möller

Fix unpadding.

Rev: src/client.c:1.17
Rev: src/server.c:1.9
parent 60f843f7
......@@ -96,11 +96,12 @@ static struct read_handler *do_line(struct line_handler **h,
|| ((length >= 9) && !memcmp(line + 4, "1.99-", 5)))
{
struct read_handler *new = make_read_packet
(make_packet_debug
(make_packet_unpad(&closure->connection->super),
stderr),
(make_packet_unpad
(make_packet_debug
(&closure->connection->super,
stderr)),
closure->connection);
closure->connection->server_version
= ssh_format("%ls", length, line);
......
......@@ -32,6 +32,7 @@
#include "keyexchange.h"
#include "read_line.h"
#include "read_packet.h"
#include "unpad.h"
#include "version.h"
#include "werror.h"
#include "xalloc.h"
......@@ -89,10 +90,11 @@ static struct read_handler *do_line(struct line_handler **h,
/* Parse and remember format string */
if ((length >= 8) && !memcmp(line + 4, "2.0-", 4))
{
struct read_handler *new
= make_read_packet(make_packet_debug(&closure->connection->super,
stderr),
closure->connection);
struct read_handler *new = make_read_packet
(make_packet_unpad
(make_packet_debug(&closure->connection->super,
stderr)),
closure->connection);
closure->connection->client_version
= ssh_format("%ls", length, line);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment