Skip to content

Commit b3ebe4b

Browse files
committed
endpoint/smtp: Drop duplicate RunEarlyChecks call
1 parent c48332a commit b3ebe4b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/endpoint/smtp/session.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ func (s *Session) AuthMechanisms() []string {
103103
}
104104

105105
func (s *Session) Auth(mech string) (sasl.Server, error) {
106-
// Executed before authentication and session initialization.
107-
if err := s.endp.pipeline.RunEarlyChecks(s.sessionCtx, &s.connState); err != nil {
108-
return nil, s.endp.wrapErr("", true, "AUTH", err)
109-
}
110-
111106
return s.endp.saslAuth.CreateSASL(mech, s.connState.RemoteAddr, func(identity string, data auth.ContextData) error {
112107
s.connState.AuthUser = identity
113108
s.connState.AuthPassword = data.Password

0 commit comments

Comments
 (0)