From 7e512eecdc25f5674384e94c51764f989f4207a0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 15 May 2018 19:52:37 -0700 Subject: [PATCH] ircd::m: Move signatures field nulling to essential keys function. --- ircd/m/event.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ircd/m/event.cc b/ircd/m/event.cc index 172920405..85b122a2c 100644 --- a/ircd/m/event.cc +++ b/ircd/m/event.cc @@ -910,8 +910,6 @@ ircd::m::verify(const event &event_, essential(event_, content) }; - json::get<"signatures"_>(event) = {}; - thread_local char buf[64_KiB]; const json::object &preimage { @@ -1117,6 +1115,7 @@ ircd::m::essential(m::event event, content = "{}"_sv; } + json::get<"signatures"_>(event) = {}; return event; }