RT2847: Don't "check" uninitialized memory

Don't check err variable until after it's been set.

Reviewed-by: Emilia Kasper <emilia@openssl.org>
This commit is contained in:
Martin Olsson 2014-08-19 11:38:54 -04:00 committed by Rich Salz
parent 96208cb182
commit 89fb142b49

View File

@ -42,8 +42,6 @@ void main ()
SSL_load_error_strings();
ctx = SSL_CTX_new (meth); CHK_NULL(ctx);
CHK_SSL(err);
/* ----------------------------------------------- */
/* Create a socket and connect to server using normal socket calls. */