Fix assorted bugs in pgproto.
- It was possible to call close(2) for an invalid file descriptor.
- It was possible to refer to NULL pointer in connect_v2().
Per Coverity (CID 1690392 and 1690394).
Author: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Backpatch-through: master only
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=1f9e25d99614591f61818fa8a7a7ded1b58048e4
Modified Files
--------------
src/tools/pgproto/main.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)