[pgpool-committers: 2050] pgpool: fix coverity issue:1223006 Use after free.

Muhammad Usama m.usama at gmail.com
Wed Jul 9 22:05:38 JST 2014


fix coverity issue:1223006 Use after free.

verify_backend_node_status() function was returning POOL_CONNECTION_POOL_SLOT pointer
after discarding(freeing) the connection object, which was only used by the caller function
to check the status of connection.
The current commit changes the return type of verify_backend_node_status() to boolen
for indicating connection sucess or failure.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=69268703ed853b0a8e5c98da0c9c3bb46b317dbe

Modified Files
--------------
src/main/pgpool_main.c |   33 ++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)



More information about the pgpool-committers mailing list