From: Martin Olsson Date: Tue, 19 Aug 2014 15:38:54 +0000 (-0400) Subject: RT2847: Don't "check" uninitialized memory X-Git-Tag: master-post-reformat~473 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=89fb142b49e100ec35edcfee81ddee59ba2fb149;hp=96208cb1821f92dd6e94c3aa2882bc9cc47904f9 RT2847: Don't "check" uninitialized memory Don't check err variable until after it's been set. Reviewed-by: Emilia Kasper --- diff --git a/demos/ssl/cli.cpp b/demos/ssl/cli.cpp index 49cba5da0c..5b4406d16f 100644 --- a/demos/ssl/cli.cpp +++ b/demos/ssl/cli.cpp @@ -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. */