diff --git a/modules/vm.cc b/modules/vm.cc index 0fb5696c1..7ba0aba77 100644 --- a/modules/vm.cc +++ b/modules/vm.cc @@ -717,12 +717,11 @@ ircd::m::vm::execute_pdu(eval &eval, fault::EXISTS, "Event has already been evaluated." }; - if(opts.verify) - if(!verify(event)) - throw m::BAD_SIGNATURE - { - "Signature verification failed" - }; + if(opts.verify && !verify(event)) + throw m::BAD_SIGNATURE + { + "Signature verification failed" + }; // Fetch dependencies if(opts.fetch)