Re: Re: [BUGS] libpq does not manage SSL callbacks properly when other libraries are involved. - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Re: [BUGS] libpq does not manage SSL callbacks properly when other libraries are involved.
Date
Msg-id 4936E6A2.3010806@hagander.net
Whole thread Raw
In response to Re: Re: [BUGS] libpq does not manage SSL callbacks properly when other libraries are involved.  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander wrote:
> Bruce Momjian wrote:
>> Bruce Momjian wrote:
>>> Thanks for the review, Magnus.  I have adjusted the patch to use the
>>> same mutex every time the counter is accessed, and adjusted the
>>> pqsecure_destroy() call to properly decrement in the right place.
>>>
>>> Also, I renamed the libpq global destroy function to be clearer
>>> (the function is not exported).
>> Here is an updated version of the patch to match CVS HEAD.
> 
> I've updated it to match what's CVS HEAD now, and made some minor
> modifications. Renamed destroySSL() to make it consistent with
> initializeSSL(). Added and changed some comments. ssldiff.patch contains
> my changes against Bruce's patch.

I've applied this version for Bruce.

//Magnus


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: snapshot leak and core dump with serializable transactions
Next
From: Heikki Linnakangas
Date:
Subject: Re: snapshot leak and core dump with serializable transactions