summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-14 15:24:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-14 15:24:51 +0200
commit74f2d0357f87a231e3782d3d8bd21853fb3524b2 (patch)
tree018df318cff213f983a948770f969f1c89e9c092 /src
parent701fcc7c7e353def78d89d9ee0ca52d32fb894b9 (diff)
downloadfastd-74f2d0357f87a231e3782d3d8bd21853fb3524b2.tar
fastd-74f2d0357f87a231e3782d3d8bd21853fb3524b2.zip
Fix reply for failed handshakes
Diffstat (limited to 'src')
-rw-r--r--src/handshake.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/handshake.c b/src/handshake.c
index 2015208..5553eb9 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -209,6 +209,8 @@ void fastd_handshake_handle(fastd_context *ctx, fastd_peer *peer, fastd_buffer b
fastd_handshake_add_uint8(ctx, &reply_buffer, RECORD_HANDSHAKE_TYPE, 2);
fastd_handshake_add_uint8(ctx, &reply_buffer, RECORD_REPLY_CODE, reply_code);
fastd_handshake_add_uint8(ctx, &reply_buffer, RECORD_ERROR_DETAIL, error_detail);
+
+ fastd_task_put_send_handshake(ctx, peer, reply_buffer);
}
else {
ctx->conf->protocol->handshake_handle(ctx, peer, &handshake);