diff options
Diffstat (limited to 'src/handshake.c')
-rw-r--r-- | src/handshake.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/handshake.c b/src/handshake.c index ce8895d..839951b 100644 --- a/src/handshake.c +++ b/src/handshake.c @@ -122,8 +122,10 @@ void fastd_handshake_handle(fastd_context *ctx, fastd_peer *peer, fastd_buffer b handshake.req_id = packet->req_id; - if (handshake.records[RECORD_HANDSHAKE_TYPE].length != 1) + if (handshake.records[RECORD_HANDSHAKE_TYPE].length != 1) { + pr_debug(ctx, "received handshake without handshake type from %P", peer); goto end_free; + } handshake.type = AS_UINT8(handshake.records[RECORD_HANDSHAKE_TYPE]); |