Explorar o código

Merge pull request #795 from ueokande/fix-segmentation-fault

Fix segmentation fault on SASL failed
Evan Huus %!s(int64=9) %!d(string=hai) anos
pai
achega
280cdbd7fe
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")