# HG changeset patch # User Tobias Markmann # Date 1274529598 -7200 # Node ID d19b2db64496cba53537651d26693a9962235c6d # Parent 39a86b0d108b1ef75b06b8c54aaacbdfbb595efa util.sasl.scram: Fix in nonce check of client-final-message. diff -r 39a86b0d108b -r d19b2db64496 util/sasl/scram.lua --- a/util/sasl/scram.lua Sat May 22 13:58:15 2010 +0200 +++ b/util/sasl/scram.lua Sat May 22 13:59:58 2010 +0200 @@ -162,8 +162,8 @@ return "failure", "malformed-request", "Missing an attribute(p, r or c) in SASL message."; end - if self.state.nonce ~= self.state.servernonce then - return "failure", "malformed-request", "Wrong nonce in client-second-message."; + if self.state.nonce ~= self.state.clientnonce..self.state.servernonce then + return "failure", "malformed-request", "Wrong nonce in client-final-message."; end local SaltedPassword = self.state.salted_password;