aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/fatalerrtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssl/fatalerrtest.c')
-rw-r--r--ssl/fatalerrtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/fatalerrtest.c b/ssl/fatalerrtest.c
index 0288c33fa2eb..f9d66e27b30c 100644
--- a/ssl/fatalerrtest.c
+++ b/ssl/fatalerrtest.c
@@ -13,8 +13,8 @@
int main(int argc, char *argv[])
{
- SSL_CTX *sctx, *cctx;
- SSL *sssl, *cssl;
+ SSL_CTX *sctx = NULL, *cctx = NULL;
+ SSL *sssl = NULL, *cssl = NULL;
const char *msg = "Dummy";
BIO *err = NULL, *wbio = NULL;
int ret = 1, len;
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
}
/* SSL_read()/SSL_write should fail because of a previous fatal error */
- if ((len = SSL_read(sssl, buf, sizeof(buf - 1))) > 0) {
+ if ((len = SSL_read(sssl, buf, sizeof(buf) - 1)) > 0) {
buf[len] = '\0';
printf("Unexpected success reading data: %s\n", buf);
goto err;