Skip site navigation (1) Skip section navigation (2)

pgsql: Properly unregister OpenSSL callbacks when libpq is done with

From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Properly unregister OpenSSL callbacks when libpq is done with
Date: 2008-12-03 20:04:27
Message-ID: 20081203200427.0A23B7545A4@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Log Message:
-----------
Properly unregister OpenSSL callbacks when libpq is done with
it's connection. This is required for applications that unload
the libpq library (such as PHP) in which case we'd otherwise
have pointers to these functions when they no longer exist.

This needs a bit more testing before we can consider a backpatch,
so not doing that yet.

In passing, remove unused functions in backend/libpq.

Bruce Momjian and Magnus Hagander, per report and analysis
by Russell Smith.

Modified Files:
--------------
    pgsql/src/backend/libpq:
        be-secure.c (r1.86 -> r1.87)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/be-secure.c?r1=1.86&r2=1.87)
    pgsql/src/interfaces/libpq:
        fe-secure.c (r1.110 -> r1.111)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-secure.c?r1=1.110&r2=1.111)

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2008-12-03 20:05:54
Subject: Re: Re: [BUGS] libpq does not manage SSL callbacks properly when other libraries are involved.
Previous:From: Alvaro HerreraDate: 2008-12-03 19:45:01
Subject: Re: snapshot leak and core dump with serializabletransactions

pgsql-committers by date

Next:From: User AchernowDate: 2008-12-04 00:05:07
Subject: libpqtypes - libpqtypes: add man for PQgetErrorField, link to PQgeterror
Previous:From: User AchernowDate: 2008-12-03 16:15:56
Subject: libpqtypes - libpqtypes: final changes to error.c

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group