diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-14 15:24:51 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-14 15:24:51 +0200 |
commit | 74f2d0357f87a231e3782d3d8bd21853fb3524b2 (patch) | |
tree | 018df318cff213f983a948770f969f1c89e9c092 /src/handshake.c | |
parent | 701fcc7c7e353def78d89d9ee0ca52d32fb894b9 (diff) | |
download | fastd-74f2d0357f87a231e3782d3d8bd21853fb3524b2.tar fastd-74f2d0357f87a231e3782d3d8bd21853fb3524b2.zip |
Fix reply for failed handshakes
Diffstat (limited to 'src/handshake.c')
-rw-r--r-- | src/handshake.c | 2 |
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); |