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;