Thread: pgsql: libpq: Don't overwrite existing OpenSSL thread callbacks

pgsql: libpq: Don't overwrite existing OpenSSL thread callbacks

From
Peter Eisentraut
Date:
libpq: Don't overwrite existing OpenSSL thread callbacks

If someone else already set the callbacks, don't overwrite them with
ours.  When unsetting the callbacks, only unset them if they point to
ours.

Author: Jan Urbański <wulczer@wulczer.org>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8a0d34e4e45d44884ebdc6cb9d9ad9c3891d8505

Modified Files
--------------
src/interfaces/libpq/fe-secure-openssl.c |   18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)