From ec95020ac27e8e49f1e9b4cda865d20424c5d0b7 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Sat, 13 Jan 2018 18:56:38 +0100 Subject: [PATCH] Fix failing test --- auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.go b/auth.go index 76feac7..3b4b754 100644 --- a/auth.go +++ b/auth.go @@ -38,8 +38,8 @@ func authPlain(socket io.ReadWriter, decoder *xml.Decoder, user string, password } switch v := val.(type) { - case *SASLSuccess: - case *SASLFailure: + case SASLSuccess: + case SASLFailure: // v.Any is type of sub-element in failure, which gives a description of what failed. return errors.New("auth failure: " + v.Any.Local) default: