aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-10-07 12:53:45 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-10-07 12:53:45 +0300
commit418cd758abeb5bb7d359788a0599daa6de016b00 (patch)
treedce8ab1b70e8859a61e703a4e2cf7ae5b285a33f /src/tutorial/funcs.source
parent31895abd8bf1bf1841b47116874bcb447b9d33b0 (diff)
downloadpostgresql-418cd758abeb5bb7d359788a0599daa6de016b00.tar.gz
postgresql-418cd758abeb5bb7d359788a0599daa6de016b00.zip
Clear OpenSSL error queue after failed X509_STORE_load_locations() call.
Leaving the error in the error queue used to be harmless, because the X509_STORE_load_locations() call used to be the last step in initialize_SSL(), and we would clear the queue before the next SSL_connect() call. But previous commit moved things around. The symptom was that if a CRL file was not found, and one of the subsequent initialization steps, like loading the client certificate or private key, failed, we would incorrectly print the "no such file" error message from the earlier X509_STORE_load_locations() call as the reason. Backpatch to all supported versions, like the previous patch.
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions