From 495327099cfee92fefe3f53198a8cb9411355a62 Mon Sep 17 00:00:00 2001 From: SpyCheese Date: Mon, 3 Oct 2022 09:15:41 +0300 Subject: [PATCH] Check level of c4 and c5 --- crypto/vm/vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/vm/vm.cpp b/crypto/vm/vm.cpp index fb2f4d1e..6668c6d5 100644 --- a/crypto/vm/vm.cpp +++ b/crypto/vm/vm.cpp @@ -503,7 +503,7 @@ int VmState::run() { bool VmState::try_commit() { if (cr.d[0].not_null() && cr.d[1].not_null() && cr.d[0]->get_depth() <= max_data_depth && - cr.d[1]->get_depth() <= max_data_depth) { + cr.d[1]->get_depth() <= max_data_depth && cr.d[0]->get_level() == 0 && cr.d[1]->get_level() == 0) { cstate.c4 = cr.d[0]; cstate.c5 = cr.d[1]; cstate.committed = true;