[pgpool-committers: 5825] pgpool: Fix segfault when "samenet" is specified in pool_hba.conf.

Tatsuo Ishii ishii at sraoss.co.jp
Mon Jun 24 11:06:45 JST 2019

Fix segfault when "samenet" is specified in pool_hba.conf.

When "samenet" is specified, SockAddr_cidr_mask(struct
sockaddr_storage *mask, char *numbits, int family) gets called with
numbits == NULL. However the function was not prepared for
it. Originally the function was imported from PostgreSQL. When the bug
was fixed in PostgreSQL, unfortunately the fix was not applied to
Pgpool-II. This commit applies the same fix as PostgreSQL.

Discussion: [pgpool-general: 6601] Pgpool-II + hba + samenet = segfault in libc-2.24.so



Modified Files
src/utils/pool_ip.c | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)

More information about the pgpool-committers mailing list