From 02f4fc18769cf209322e5e65388bd3f135c31e5c Mon Sep 17 00:00:00 2001 From: William Vu Date: Thu, 20 Sep 2018 20:29:56 -0500 Subject: [PATCH] Prefer to_s.empty? Oh, hell, do it here, too. --- modules/auxiliary/scanner/ssl/openssl_heartbleed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb b/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb index 3f16ceb638..6d4ec58041 100644 --- a/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb +++ b/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb @@ -509,7 +509,7 @@ class MetasploitModule < Msf::Auxiliary # Stores received data def loot_and_report(heartbeat_data) - if heartbeat_data.nil? || heartbeat_data.empty? + if heartbeat_data.to_s.empty? vprint_error("Looks like there isn't leaked information...") return end