diff --git a/src/scram.js b/src/scram.js index 67e1a387..8eb522ef 100644 --- a/src/scram.js +++ b/src/scram.js @@ -48,8 +48,12 @@ function scramParseChallenge(challenge) { case 'i': iter = parseInt(matches[2], 10); break; - default: + case 'm': + // Mandatory but unknown extension, per RFC 5802 we should abort return undefined; + default: + // Non-mandatory extension, per RFC 5802 we should ignore it + break; } }