Skip to content

Commit

Permalink
Merge pull request #578 from quanah/issue545
Browse files Browse the repository at this point in the history
Fixes #545 -- Correctly return BADAUTH on incorrect password
  • Loading branch information
ksmurchison authored Aug 9, 2019
2 parents ea128c6 + dd01481 commit afef6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/scram.c
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ scram_server_mech_step2(server_context_t *text,
for (k = 0; k < hash_size; k++) {
if (CalculatedStoredKey[k] != text->StoredKey[k]) {
SETERROR(sparams->utils, "StoredKey mismatch");
result = SASL_BADPROT;
result = SASL_BADAUTH;
goto cleanup;
}
}
Expand Down

0 comments on commit afef6f4

Please sign in to comment.