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

Don't crash SMTP client when TLS is optional and we failed to handshake #258

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

seriyps
Copy link
Collaborator

@seriyps seriyps commented Mar 25, 2021

send_it expects that try_smtp_sessions returns {ok, Sock}, but in "restart without TLS" scenario it would return just Sock.

I'm quite surprized that Dialyzed did not complain.

This scenario have not been covered by tests, so, a new test was added.

`send_it` expects that `try_smtp_sessions` returns `{ok, Sock}`, but in
this scenario it would return just `Sock`.
@seriyps seriyps requested review from arjan and mworrell March 25, 2021 02:27
@mworrell
Copy link
Collaborator

So much for Dialyzer.... good catch!

@mworrell mworrell merged commit ae5d5b0 into gen-smtp:master Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants