]> 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:46 +0000 (14:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Nov 2008 14:57:46 +0000 (14:57 +0000)
commitaf9b481653240fe1ffd66f184026ea24928abcb2
treefbde31e65ad77e3e8418e44758b4467718d9207e
parentd0d2d74ce73e733b8cb1868a37a033d498aae0c3
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