diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-06 20:06:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-06 20:06:58 +0000 |
commit | 4717992b4e6b3c752b8e07465011fe68da7e32b8 (patch) | |
tree | 27f1e73d0489cee7c48c534f381128058b4845cc /src/bin/scripts/common.c | |
parent | a3f98d579534721d8c2aa890c8dda678f14098d8 (diff) | |
download | postgresql-4717992b4e6b3c752b8e07465011fe68da7e32b8.tar.gz postgresql-4717992b4e6b3c752b8e07465011fe68da7e32b8.zip |
Instead of a bare recv() to read the server's response to an SSL
request packet, use pqReadData(). This has the same effect since
conn->ssl isn't set yet and we aren't expecting more than one byte.
The advantage is that we will correctly detect loss-of-connection
instead of going into an infinite loop. Per report from Hannu Krosing.
Diffstat (limited to 'src/bin/scripts/common.c')
0 files changed, 0 insertions, 0 deletions