lib/nmap/os.rb in ruby-nmap-0.9.0 vs lib/nmap/os.rb in ruby-nmap-0.9.1

- old
+ new

@@ -107,10 +107,12 @@ # # @return [String] # The OS fingerprint. # def fingerprint - @fingerprint ||= @node.at("osfingerprint/@fingerprint").inner_text + @fingerprint ||= if (fingerprint = @node.at("osfingerprint/@fingerprint")) + fingerprint.inner_text + end end # # Parses the OS match information. #