diff --git a/modules/exploits/unix/http/maltrail_rce.rb b/modules/exploits/unix/http/maltrail_rce.rb
index eaa7770be2..76d398ea06 100644
--- a/modules/exploits/unix/http/maltrail_rce.rb
+++ b/modules/exploits/unix/http/maltrail_rce.rb
@@ -91,7 +91,7 @@ class MetasploitModule < Msf::Exploit::Remote
return CheckCode::Unknown("#{peer} - Could not connect to web service - no response") if res.nil?
return CheckCode::Unknown("#{peer} - Check URI Path, unexpected HTTP response code: #{res.code}") unless res.code == 200
- version = Rex::Version.new(Regexp.last_match(1)) if res.body =~ %r{\(v([0-9.]+)\)
+ version = Rex::Version.new(Regexp.last_match(1)) if res.body =~ %r{\(v([0-9.]+)\)}
if version <= Rex::Version.new('0.54')
return CheckCode::Appears("Version Detected: #{version}")