aboutsummaryrefslogtreecommitdiff
path: root/src/common/scram-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/scram-common.c')
-rw-r--r--src/common/scram-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/scram-common.c b/src/common/scram-common.c
index 295507a0adc..461d75db125 100644
--- a/src/common/scram-common.c
+++ b/src/common/scram-common.c
@@ -219,8 +219,8 @@ scram_build_verifier(const char *salt, int saltlen, int iterations,
*----------
*/
maxlen = strlen("SCRAM-SHA-256") + 1
- + 10 + 1 /* iteration count */
- + pg_b64_enc_len(saltlen) + 1 /* Base64-encoded salt */
+ + 10 + 1 /* iteration count */
+ + pg_b64_enc_len(saltlen) + 1 /* Base64-encoded salt */
+ pg_b64_enc_len(SCRAM_KEY_LEN) + 1 /* Base64-encoded StoredKey */
+ pg_b64_enc_len(SCRAM_KEY_LEN) + 1; /* Base64-encoded ServerKey */