Skip to content

Commit

Permalink
Make only scram mandatory extensions abort connection
Browse files Browse the repository at this point in the history
  • Loading branch information
prefiks authored and jcbrand committed Jan 18, 2024
1 parent a758953 commit d43a619
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/scram.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit d43a619

Please sign in to comment.