Skip to content

Commit 710df6f

Browse files
committed
Fix scram server signature matching
1 parent 6e4e5b3 commit 710df6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/frontend.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function SASLContinue(type, x, options) {
114114
}
115115

116116
function SASLFinal(type, x, options) {
117-
if (x.utf8Slice(9).split(N, 1)[0].slice(2, -1) !== options.serverSignature) {
117+
if (x.utf8Slice(9).split(N, 1)[0].slice(2) !== options.serverSignature) {
118118
throw errors.generic({
119119
message: 'The server did not return the correct signature',
120120
code: 'SASL_SIGNATURE_MISMATCH'

0 commit comments

Comments
 (0)