summaryrefslogtreecommitdiff
path: root/src/srp.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/srp.js')
-rw-r--r--src/srp.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/srp.js b/src/srp.js
index b348e69..e66c2fa 100644
--- a/src/srp.js
+++ b/src/srp.js
@@ -35,7 +35,7 @@ function SRP(remote, session)
// If an error occurs, raise it as an alert.
function confirm_authentication(response)
{
- if (session.validate(response.M))
+ if (session.validate(response.M2))
srp.success();
else
srp.error("Server key does not match");