Skip to content

Commit

Permalink
server: send error response on invalid AUTH initial response
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Feb 21, 2024
1 parent 65c0260 commit 33fe6a6
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 @@ -781,6 +781,7 @@ func (c *Conn) handleAuth(arg string) {
var err error
ir, err = base64.StdEncoding.DecodeString(parts[1])
if err != nil {
c.writeResponse(454, EnhancedCode{4, 7, 0}, "Invalid base64 data")
return
}
}
Expand Down

0 comments on commit 33fe6a6

Please sign in to comment.