Usman Riaz wrote:
ALWAYS intialise your pointers :).
TestSSL()
{
ctx = NULL;
bio_err = NULL;
}
A much better habbit to get into is to use the initialization syntax.
TestSSL()
: ctx(),
bio_err()
{
}
The advantage is that if you change your code so that ctx or bio_err is
a different (non POD) object, as happens when you templatize code, this
code will still do what you intended.
HTH,
Usman.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]