Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: enable_starttls before disable_tls causes an error. #10

Merged
merged 1 commit into from
Oct 11, 2020

Conversation

tmtm
Copy link
Collaborator

@tmtm tmtm commented Oct 11, 2020

enable_starttls before disable_tls causes an error.

require 'net/smtp'

s = Net::SMTP.new("localhost", 25)
s.enable_starttls
s.disable_tls
s.start
#=> wrong argument type nil (expected OpenSSL/SSL/CTX) (TypeError)

@tmtm tmtm merged commit 3f9697a into ruby:master Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant