Explorar o código

Fix segmentation fault on SASL failed

Shin'ya Ueoka %!s(int64=9) %!d(string=hai) anos
pai
achega
a5a578733f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      broker.go

+ 1 - 1
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")