Set include_realm=1 default in parse_hba_line

Stephen Frost <sfrost@snowman.net>

Commit: 695012a0d585844130bf3d82ad0b4ebe0b7bf581
Author: Stephen Frost <sfrost@snowman.net>
Date: 2015-11-06T16:18:33Z
Releases: 9.5.0
Set include_realm=1 default in parse_hba_line

With include_realm=1 being set down in parse_hba_auth_opt, if multiple
options are passed on the pg_hba line, such as:

host all     all    0.0.0.0/0    gss include_realm=0 krb_realm=XYZ.COM

We would mistakenly reset include_realm back to 1.  Instead, we need to
set include_realm=1 up in parse_hba_line, prior to parsing any of the
additional options.

Discovered by Jeff McCormick during testing.

Bug introduced by 9a08841.

Back-patch to 9.5

Files

PathChange+/−
src/backend/libpq/hba.c modified +13 −13