Skip to content

Commit 39b3b74

Browse files
author
bararchy
committed
Fixed end placment
1 parent a7fe7f7 commit 39b3b74

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

sslscanner.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,12 @@ def get_certificate_information(server, port)
205205
"key size: #{key_size}",
206206
"public key:\r\n#{cert.public_key}"].join("\r\n")
207207
return results
208-
rescue Exception => e
209-
puts e.message
210-
ensure
211-
socket_destination.close if socket_destination rescue nil
212-
tcp_socket.close if tcp_socket rescue nil
208+
rescue Exception => e
209+
puts e.message
210+
ensure
211+
socket_destination.close if socket_destination rescue nil
212+
tcp_socket.close if tcp_socket rescue nil
213+
end
213214
end
214215

215216

0 commit comments

Comments
 (0)