]> granicus.if.org Git - postgresql/commit
Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the BIO_s_mem buffer
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Nov 2008 14:57:53 +0000 (14:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Nov 2008 14:57:53 +0000 (14:57 +0000)
commit8f74153732c512baa498eb6c38244c0d3a09dff8
tree598d66ab6b1ef6f97ce2bdc687460ae0316ec35d
parent400e915c6227cc91967b286d466a2c18d2bfce2e
Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the BIO_s_mem buffer
it was using too soon.  In a situation where pg_do_encoding_conversion is
a no-op, this led to garbage data returned.

In HEAD, also modify the code that's ensuring null termination to make it
a tad more obvious what's happening.
contrib/sslinfo/sslinfo.c