Selaa lähdekoodia

Fix segmentation fault on SASL failed

Shin'ya Ueoka 9 vuotta sitten
vanhempi
commit
a5a578733f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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")