summaryrefslogtreecommitdiffstats
path: root/src/handshake.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-20 03:03:05 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-20 03:03:05 +0200
commitb3c602a025057a306e5083babeabd83f420bceb8 (patch)
treef96fbb2489ef7c7b10a4f503c92c934fdd4d7fda /src/handshake.c
parent90eeceb9ed6ffbab457b2d5caae74b92750fc0c3 (diff)
downloadfastd-b3c602a025057a306e5083babeabd83f420bceb8.tar
fastd-b3c602a025057a306e5083babeabd83f420bceb8.zip
Align handshake buffer
Diffstat (limited to 'src/handshake.c')
-rw-r--r--src/handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handshake.c b/src/handshake.c
index b021e2a..604e5f4 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -130,7 +130,7 @@ static fastd_buffer_t new_handshake(fastd_context_t *ctx, uint8_t type, const fa
if (with_method_list)
method_list = create_method_list(ctx, &method_list_len);
- fastd_buffer_t buffer = fastd_buffer_alloc(ctx, sizeof(fastd_handshake_packet_t), 0,
+ fastd_buffer_t buffer = fastd_buffer_alloc(ctx, sizeof(fastd_handshake_packet_t), 1,
3*5 + /* handshake type, mode, reply code */
6 + /* MTU */
4+version_len + /* version name */