ssl_client2: initialize all structures, so that we can call *_free() in case of error
commitea31e095f672c4ee4529025631b756e97b641f51
authorWilliam Smith <wsmith1@mail.ru>
Fri, 18 Jan 2013 02:35:21 +0000 (17 21:35 -0500)
committerWilliam Smith <wsmith1@mail.ru>
Fri, 18 Jan 2013 02:45:12 +0000 (17 21:45 -0500)
treedf796caa101d41093cd34bcad7182959933286b1
parente27da88e546e91b2765b5646e51c39b53cb818c1
ssl_client2: initialize all structures, so that we can call *_free() in case of error

In ssl_client2, initialize at the beginning all the structures
that are used in the program. This ensures that calls to
functions like x509_free(), rsa_free() and ssl_free()
do not cause a segmentation fault or other undesired behaviour.
programs/ssl/ssl_client2.c