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

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

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

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



More information about the pgpool-committers mailing list