From f824b8988e9fdbe57e0299baf3e5dde3f5221d43 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 22 Jan 2025 18:03:05 -0500 Subject: [PATCH] ssb: Correctness around tunnel.endpoints. --- src/ssb.rpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssb.rpc.c b/src/ssb.rpc.c index 5d4f1bc2..2433d639 100644 --- a/src/ssb.rpc.c +++ b/src/ssb.rpc.c @@ -522,10 +522,11 @@ static void _tf_ssb_rpc_tunnel_endpoints(tf_ssb_connection_t* connection, uint8_ tf_ssb_t* ssb = tf_ssb_connection_get_ssb(connection); if (!tf_ssb_is_room(ssb)) { - tf_ssb_connection_rpc_send_error_method_not_allowed(connection, flags, -request_number, "room.attendants"); + tf_ssb_connection_rpc_send_error_method_not_allowed(connection, flags, -request_number, "tunnel.endpoints"); return; } + tf_ssb_connection_add_request(connection, -request_number, "tunnel.endpoints", NULL, NULL, NULL, NULL); tf_ssb_connection_set_endpoint(connection, true, request_number); _tf_ssb_rpc_send_endpoints(ssb); }