Skip to content

Commit

Permalink
fix(email.go):Fix runtime error(invalid memory address) (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
shopper29 committed Jan 17, 2021
1 parent 705ed0a commit affb456
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions report/email.go
Expand Up @@ -123,11 +123,11 @@ func (e *emailSender) sendMail(smtpServerAddr, message string) (err error) {
if ok, param := c.Extension("AUTH"); ok {
authList := strings.Split(param, " ")
auth = e.newSaslClient(authList)
if err = c.Auth(auth); err != nil {
return xerrors.Errorf("Failed to authenticate: %w", err)
}
}

if err = c.Auth(auth); err != nil {
return xerrors.Errorf("Failed to authenticate: %w", err)
}
if err = c.Mail(emailConf.From, nil); err != nil {
return xerrors.Errorf("Failed to send Mail command: %w", err)
}
Expand Down

0 comments on commit affb456

Please sign in to comment.