From 07044efe00762bdd04c4d392adb8f6425b13369b Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 6 Apr 2017 17:41:48 +0300 Subject: Remove bogus SCRAM_ITERATION_LEN constant. It was not used for what the comment claimed, at all. It was actually used as the 'base' argument to strtol(), when reading the iteration count. We don't need a constant for base-10, so remove it. --- src/interfaces/libpq/fe-auth-scram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interfaces') diff --git a/src/interfaces/libpq/fe-auth-scram.c b/src/interfaces/libpq/fe-auth-scram.c index a7bb30a141c..818ade4993a 100644 --- a/src/interfaces/libpq/fe-auth-scram.c +++ b/src/interfaces/libpq/fe-auth-scram.c @@ -444,7 +444,7 @@ read_server_first_message(fe_scram_state *state, char *input, /* read_attr_value() has generated an error string */ return false; } - state->iterations = strtol(iterations_str, &endptr, SCRAM_ITERATION_LEN); + state->iterations = strtol(iterations_str, &endptr, 10); if (*endptr != '\0' || state->iterations < 1) { printfPQExpBuffer(errormessage, -- cgit v1.2.3