0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd:Ⓜ️:vm: Restore sequence number stackfully on completion.

This commit is contained in:
Jason Volk 2020-04-20 20:18:02 -07:00
parent 7306ef4eb0
commit 61942819f2

View file

@ -313,6 +313,11 @@ try
*eval.opts *eval.opts
}; };
const scope_restore eval_sequence
{
eval.sequence, 0UL
};
// The issue hook is only called when this server is injecting a newly // The issue hook is only called when this server is injecting a newly
// created event. // created event.
if(eval.copts && eval.copts->issue) if(eval.copts && eval.copts->issue)
@ -535,7 +540,6 @@ ircd::m::vm::execute_pdu(eval &eval,
const auto *const &top(eval::seqmax()); const auto *const &top(eval::seqmax());
eval.sequence_shared[0] = 0; eval.sequence_shared[0] = 0;
eval.sequence_shared[1] = 0; eval.sequence_shared[1] = 0;
eval.sequence = 0;
eval.sequence = eval.sequence =
{ {
top? top?