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

Tatsuo Ishii ishii at sraoss.co.jp
Mon Jun 24 11:06:27 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

Branch
------
V3_4_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=5a207cd0385c13ba640c67a21f713ba3889ecb1d

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



More information about the pgpool-committers mailing list