diff --git a/src/ssb.c b/src/ssb.c index 4d1319ee..f65ea27f 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -58,7 +58,7 @@ typedef enum { enum { k_connections_changed_callbacks_max = 8, - k_tf_ssb_rpc_message_body_length_max = 8192, + k_tf_ssb_rpc_message_body_length_max = 65536, }; typedef struct _tf_ssb_broadcast_t tf_ssb_broadcast_t; @@ -1127,13 +1127,6 @@ static bool _tf_ssb_connection_box_stream_recv(tf_ssb_connection_t* connection) } _tf_ssb_nonce_inc(connection->nonce); connection->body_len = htons(*(uint16_t*)header); - if (connection->body_len > k_tf_ssb_rpc_message_body_length_max) - { - char reason[512]; - snprintf(reason, sizeof(reason), "body length is too large: %d", connection->body_len); - _tf_ssb_connection_close(connection, reason); - return false; - } memcpy(connection->body_auth_tag, header + sizeof(uint16_t), sizeof(connection->body_auth_tag)); if (!connection->body_len) {