Skip to content

Commit

Permalink
invert path check
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlundy authored and foxcpp committed Feb 13, 2022
1 parent dca3eb7 commit d2f9c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/auth/dovecot_sasl/dovecot_sasl.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (a *Auth) Init(cfg *config.Map) error {
if err != nil {
return fmt.Errorf("%s: invalid server endpoint: %v", modName, err)
}
if endp.Path == "" {
if endp.Path != "" {
return fmt.Errorf("%s: unexpected path in endpoint ", modName)
}

Expand Down

0 comments on commit d2f9c58

Please sign in to comment.