pgsql: Fix outdated comment of scram_build_secret() - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix outdated comment of scram_build_secret()
Date
Msg-id E1tKrKz-001yO6-2D@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/416d1bd66c2859b2a40d265b77299c1f1d5dfc5b

Modified Files
--------------
src/common/scram-common.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: pgsql: Fix unused-but-set-variable compiler warning in reorderbuffer.c.
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix comments of GUC hooks for timezone_abbreviations