From faf714335c93a765705d06966afcb7b02ed6e238 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 6 Sep 2018 06:00:21 -0700 Subject: [PATCH] modules/federation/send: Only accept edu's directly from the transmitter. --- modules/federation/send.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/federation/send.cc b/modules/federation/send.cc index 0667e84b9..0e1e1511c 100644 --- a/modules/federation/send.cc +++ b/modules/federation/send.cc @@ -33,7 +33,7 @@ handle_edu(client &client, const m::edu &edu) { m::event event; - json::get<"origin"_>(event) = at<"origin"_>(request); + json::get<"origin"_>(event) = request.origin; json::get<"origin_server_ts"_>(event) = at<"origin_server_ts"_>(request); json::get<"content"_>(event) = at<"content"_>(edu); json::get<"type"_>(event) = at<"edu_type"_>(edu);