Skip to content

Commit 41a3543

Browse files
committed
Land rapid7#19449, Fix an exception when the target is not Ubuntu
2 parents 1a1c21a + 5e71490 commit 41a3543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/local/cve_2022_0995_watch_queue.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def module_check
9090
fail_with(Failure::BadConfig, 'DEBUG_PRINT is only supported when COMPILE is set to True')
9191
end
9292
unless kernel_version =~ /[uU]buntu/
93-
fail_with(Failure::NoTarget, "Unsupported Distro: '#{version}'")
93+
fail_with(Failure::NoTarget, "Unsupported Distro: '#{kernel_version}'")
9494
end
9595
arch = kernel_hardware
9696
unless arch.include?('x86_64')

0 commit comments

Comments
 (0)