summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2025-01-12 23:44:39 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2025-01-12 23:44:39 +0100
commit7b1f50d8c87d9fec036171e860effad5dd7ec277 (patch)
tree92a25b8425424dc17ad5c7b4469f8fb24034d554 /src
parent8f137f0382b1ed1cb015ad12d36a6398b89a5e5f (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 <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/286764.1736697356@sss.pgh.pa.us Backpatch-through: v13
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/hba.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c
index b355c08e6dd..b2f27d2d55f 100644
--- a/src/backend/libpq/hba.c
+++ b/src/backend/libpq/hba.c
@@ -2273,12 +2273,12 @@ load_hba(void)
/*
* 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.