Commit 48134a74 authored by Niels Möller's avatar Niels Möller

Keep sequence number.

Rev: src/symmetric/.cvsignore:1.1
Rev: src/unpad.c:1.7
parent 1685fcf9
Makefile
config.cache
config.log
config.status
configure
configure.scan
desQuickCore.c
desQuickFips.c
desSmallCore.c
desSmallFips.c
desdata
keymap.h
parity.h
rotors.h
*.d
/Makefile
/config.cache
/config.log
/config.status
/configure
/configure.scan
/desQuickCore.c
/desQuickFips.c
/desSmallCore.c
/desSmallFips.c
/desdata
/keymap.h
/parity.h
/rotors.h
/*.d
......@@ -4,6 +4,7 @@
#include "unpad.h"
#include "xalloc.h"
#include "format.h"
static int do_unpad(struct abstract_write **w,
struct lsh_string *packet)
......@@ -25,10 +26,10 @@ static int do_unpad(struct abstract_write **w,
payload_length = packet->length - 1 - padding_length;
/* FIXME: Use ssh_format() */
new = lsh_string_alloc(payload_length);
new = ssh_format("%ls", payload_length, packet->data + 1);
memcpy(new->data, packet->data + 1, payload_length);
/* Keep sequence number */
new->sequence_number = packet->sequence_number;
lsh_string_free(packet);
......
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