[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.



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

More information about the pgpool-committers mailing list