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

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

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

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



More information about the pgpool-committers mailing list