Skip to content

Commit 9e596a0

Browse files
Fix HBA option count
Commit 27a1f8d 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
1 parent dc8cd9c commit 9e596a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/libpq/hba.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2331,12 +2331,12 @@ load_hba(void)
23312331
/*
23322332
* This macro specifies the maximum number of authentication options
23332333
* that are possible with any given authentication method that is supported.
2334-
* Currently LDAP supports 11, and there are 3 that are not dependent on
2334+
* Currently LDAP supports 12, and there are 3 that are not dependent on
23352335
* the auth method here. It may not actually be possible to set all of them
23362336
* at the same time, but we'll set the macro value high enough to be
23372337
* conservative and avoid warnings from static analysis tools.
23382338
*/
2339-
#define MAX_HBA_OPTIONS 14
2339+
#define MAX_HBA_OPTIONS 15
23402340

23412341
/*
23422342
* Create a text array listing the options specified in the HBA line.

0 commit comments

Comments
 (0)