10000 Fix comment in fe-auth-scram.c · postgres/postgres@a282d5f · GitHub
[go: up one dir, main page]

Skip to content

Commit a282d5f

Browse files
committed
Fix comment in fe-auth-scram.c
The frontend-side routine in charge of building a SCRAM verifier mentioned that the restrictions applying to SASLprep on the password with the encoding are described at the top of fe-auth-scram.c, but this information is in auth-scram.c. This is wrong since 8f8b9be, so backpatch all the way down as this is an important documentation bit. Spotted while reviewing a different patch. Backpatch-through: 11
1 parent a6c9e1d commit a282d5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/interfaces/libpq/fe-auth-scram.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,8 @@ pg_fe_scram_build_verifier(const char *password)
774774
/*
775775
* Normalize the password with SASLprep. If that doesn't work, because
776776
* the password isn't valid UTF-8 or contains prohibited characters, just
777-
* proceed with the original password. (See comments at top of file.)
777+
* proceed with the original password. (See comments at the top of
778+
* auth-scram.c.)
778779
*/
779780
rc = pg_saslprep(password, &prep_password);
780781
if (rc == SASLPREP_OOM)

0 commit comments

Comments
 (0)
0