Skip to content

Commit

Permalink
Fix a typo when the kernel is not Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Sep 9, 2024
1 parent 85f344a commit 5e71490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/exploits/linux/local/cve_2022_0995_watch_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def module_check
fail_with(Failure::BadConfig, 'DEBUG_PRINT is only supported when COMPILE is set to True')
end
unless kernel_version =~ /[uU]buntu/
fail_with(Failure::NoTarget, "Unsupported Distro: '#{version}'")
fail_with(Failure::NoTarget, "Unsupported Distro: '#{kernel_version}'")
end
arch = kernel_hardware
unless arch.include?('x86_64')
Expand Down

0 comments on commit 5e71490

Please sign in to comment.