Harald Koch wrote: > Of all the gin joints in all the towns in all the world, Yuval Pemper > had to walk into mine and say: > >>Another problem with my code: the buffer I allocated wasn't freed... >>Thanks to Peter Sylvester for pointing this out. I also moved the >>allocation of the buffer to where it's actually used. > > > What's wrong with: > > buf = X509_NAME_oneline(nm, NULL, 0); > ... > OPENSSL_free(buf); > > (given those parameters, X509_NAME_oneline() will allocate a buffer of > the correct size and fill it for you. No complicated code required). >
Quite so! Cheers, Ben. -- http://www.apache-ssl.org/ben.html http://www.thebunker.net/ "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert Woodruff ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
