summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson2025-01-12 22:44:39 +0000
committerDaniel Gustafsson2025-01-12 22:44:39 +0000
commit97698cc517c75d3cbb9c680aab3afd36e471b83a (patch)
tree10ba9462cb66cbd39559cf1010594f4b9201173e
parenta93e2a1e25a6d5410abb1446637c4d9a4f24e35d (diff)
Fix HBA option count
Commit 27a1f8d108 missed updating the max HBA option count to account for the new option added. Fix by bumping the counter and adjust the relevant comment to match. Backpatch down to all supported branches like the erroneous commit. Reported-by: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected] Backpatch-through: v13
-rw-r--r--src/backend/utils/adt/hbafuncs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/hbafuncs.c b/src/backend/utils/adt/hbafuncs.c
index dcc95b24330..03c38e8c451 100644
--- a/src/backend/utils/adt/hbafuncs.c
+++ b/src/backend/utils/adt/hbafuncs.c
@@ -37,12 +37,12 @@ static void fill_ident_view(Tuplestorestate *tuple_store, TupleDesc tupdesc);
/*
* This macro specifies the maximum number of authentication options
* that are possible with any given authentication method that is supported.
- * Currently LDAP supports 11, and there are 3 that are not dependent on
+ * Currently LDAP supports 12, and there are 3 that are not dependent on
* the auth method here. It may not actually be possible to set all of them
* at the same time, but we'll set the macro value high enough to be
* conservative and avoid warnings from static analysis tools.
*/
-#define MAX_HBA_OPTIONS 14
+#define MAX_HBA_OPTIONS 15
/*
* Create a text array listing the options specified in the HBA line.