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.librecmc.org/?a=commitdiff_plain;h=89fb142b49e100ec35edcfee81ddee59ba2fb149;p=oweals%2Fopenssl.git 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. */