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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: libpq: Don't overwrite existing OpenSSL thread callbacks
Date: 2015-04-10 01:03:33
Message-ID: E1YgNM5-0000DD-Bn@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)wulczer(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2015-04-10 16:50:49 pgsql: Optimize locking a tuple already locked by another subxact
Previous Message Magnus Hagander 2015-04-09 19:40:25 pgsql: Show owner of types in psql \dT+