Skip to content

Commit 7516512

Browse files
author
HD Moore
committed
Raise an ArgumentError vs RuntimeError for backwards compatibility
1 parent a762d87 commit 7516512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/socket/ssl_tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def initsock(params = nil)
8080

8181
# Raise an error if no selected versions are supported
8282
if versions.length == 0
83-
raise RuntimeError, 'The system OpenSSL does not support the request SSL/TLS version'
83+
raise ArgumentError, 'The system OpenSSL does not support the request SSL/TLS version'
8484
end
8585

8686
last_error = nil

0 commit comments

Comments
 (0)