Fix outdated comment of scram_build_secret()

Michael Paquier <michael@paquier.xyz>

Commit: 7b2690a5713e66c64313cea1cf881da3dcaaae2a
Author: Michael Paquier <michael@paquier.xyz>
Date: 2024-12-10T03:54:09Z
Releases: 18.0
Fix outdated comment of scram_build_secret()

This routine documented that "iterations" would use a default value if
set to 0 by the caller.  However, the iteration should always be set by
the caller to a value strictly more than 0, as documented by an
assertion.

Oversight in b577743000cd, that has made the iteration count of SCRAM
configurable.

Author: Matheus Alcantara
Discussion: https://postgr.es/m/ac858943-4743-44cd-b4ad-08a0c10cbbc8@gmail.com
Backpatch-through: 16

Files

PathChange+/−
src/common/scram-common.c modified +1 −2

Discussion