Fix dispsize for libpq connection parameters channel_binding and gssencmode
authorMichael Paquier <michael@paquier.xyz>
Wed, 29 Jan 2020 06:08:19 +0000 (15:08 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 29 Jan 2020 06:08:19 +0000 (15:08 +0900)
commit29e321cdd63ea48fd0223447d58f4742ad729eb0
treede3cb37ababf30f6fefa67337620bb133b55aa4b
parent47bc9ced0d0e96523e2c639c7066c9aede189ed7
Fix dispsize for libpq connection parameters channel_binding and gssencmode

channel_binding's longest allowed value is not "7", it is actually "8".
gssencmode also got that wrong.

A similar mistake has been fixed as of f4051e3.

Backpatch down to v12, where gssencmode has been introduced.

Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/20200128053633.GD1552@paquier.xyz
Backpatch-through: 12
src/interfaces/libpq/fe-connect.c