From a5a578733f4aa6053b7e55f204e67d0c21c3c181 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 1 Dec 2016 22:51:49 +0900 Subject: [PATCH] Fix segmentation fault on SASL failed --- broker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broker.go b/broker.go index 57c23e3ee..89beecc86 100644 --- a/broker.go +++ b/broker.go @@ -566,7 +566,7 @@ func (b *Broker) sendAndReceiveSASLPlainHandshake() error { return err } if res.Err != ErrNoError { - Logger.Printf("Invalid SASL Mechanism : %s\n", err.Error()) + Logger.Printf("Invalid SASL Mechanism : %s\n", res.Err.Error()) return res.Err } Logger.Print("Successful SASL handshake")