projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96208cb
)
RT2847: Don't "check" uninitialized memory
author
Martin Olsson
<martin@minimum.se>
Tue, 19 Aug 2014 15:38:54 +0000
(11:38 -0400)
committer
Rich Salz
<rsalz@akamai.com>
Tue, 19 Aug 2014 16:47:02 +0000
(12:47 -0400)
Don't check err variable until after it's been set.
Reviewed-by: Emilia Kasper <emilia@openssl.org>
demos/ssl/cli.cpp
patch
|
blob
|
history
diff --git
a/demos/ssl/cli.cpp
b/demos/ssl/cli.cpp
index 49cba5da0c81d1bbf724a2af82656ac36a901c03..5b4406d16f1985ba6eaaedd2dec1c7959107b1fa 100644
(file)
--- 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. */