From a0685e2dc6d0d7512408e421a2fb9d68b05b0e10 Mon Sep 17 00:00:00 2001 From: lumi Date: Sat, 25 Feb 2017 06:02:59 +0100 Subject: [PATCH] woops, wrong variable name here --- src/sasl/mechanisms/scram.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sasl/mechanisms/scram.rs b/src/sasl/mechanisms/scram.rs index e51e21c0..f6f6d865 100644 --- a/src/sasl/mechanisms/scram.rs +++ b/src/sasl/mechanisms/scram.rs @@ -212,7 +212,7 @@ impl SaslMechanism for Scram { if let Some(ref cb) = self.channel_binding { cb_data.extend(cb); } - client_final_message_bare.extend(base64::encode(gs2_header).bytes()); + client_final_message_bare.extend(base64::encode(&cb_data).bytes()); client_final_message_bare.extend(b",r="); client_final_message_bare.extend(server_nonce.bytes()); let salted_password = S::derive(self.password.as_bytes(), &salt, iterations);