Skip to content

Commit

Permalink
server: Add missing return to handleStartTLS
Browse files Browse the repository at this point in the history
Closes #152.
  • Loading branch information
foxcpp committed Jul 22, 2021
1 parent df83e63 commit 30d7182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ func (c *Conn) handleStartTLS() {
if err := tlsConn.Handshake(); err != nil {
c.server.ErrorLog.Printf("TLS handshake error for %s: %v", c.conn.RemoteAddr(), err)
c.WriteResponse(550, EnhancedCode{5, 0, 0}, "Handshake error")
return
}

c.conn = tlsConn
Expand Down

0 comments on commit 30d7182

Please sign in to comment.