mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
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.
This commit is contained in:
@@ -476,7 +476,7 @@ parse_scram_verifier(const char *verifier, char **salt, int *iterations,
|
||||
if ((p = strtok(NULL, ":")) == NULL)
|
||||
goto invalid_verifier;
|
||||
errno = 0;
|
||||
*iterations = strtol(p, &p, SCRAM_ITERATION_LEN);
|
||||
*iterations = strtol(p, &p, 10);
|
||||
if (*p || errno != 0)
|
||||
goto invalid_verifier;
|
||||
|
||||
|
Reference in New Issue
Block a user