0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-07 20:48:55 +02:00

ircd:Ⓜ️:room::auth: Fix incorrectly resolved index() call. (#18)

This commit is contained in:
Jason Volk 2019-08-18 05:54:03 -07:00
parent 52657ca410
commit 19c2d7da8e

View file

@ -725,8 +725,16 @@ const
const m::event::prev prev{e};
for(size_t i(0); i < prev.auth_events_count() && i < 4; ++i)
{
const auto &auth_event_id(prev.auth_event(i));
const auto &auth_event_idx(index(auth_event_id, std::nothrow));
const m::event::id &auth_event_id
{
prev.auth_event(i)
};
const auto &auth_event_idx
{
m::index(auth_event_id, std::nothrow)
};
if(!auth_event_idx)
continue;