Skip to content

Commit 5e71490

Browse files
committed
Fix a typo when the kernel is not Ubuntu
1 parent 85f344a commit 5e71490

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)