Skip to content

Commit

Permalink
net.smtp: fix crash when reconnecting with .encrypted=true (fix #23289)…
Browse files Browse the repository at this point in the history
… (#23290)
  • Loading branch information
felipensp authored Dec 27, 2024
1 parent dcc1a6c commit 6025893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/net/smtp/smtp.v
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub fn (mut c Client) reconnect() ! {
conn := net.dial_tcp('${c.server}:${c.port}') or { return error('Connecting to server failed') }
c.conn = conn

if c.ssl {
if c.ssl || c.encrypted {
c.connect_ssl()!
} else {
c.reader = io.new_buffered_reader(reader: c.conn)
Expand Down

0 comments on commit 6025893

Please sign in to comment.