]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/bio_ok.c
remove 0 assignments.
[thirdparty/openssl.git] / crypto / evp / bio_ok.c
index 9fdf6bc27adc7a78aff83c183d265fda24ca07b4..8658f88a0599c6588b8aa335a3386735c0500b01 100644 (file)
@@ -176,21 +176,13 @@ static int ok_new(BIO *bi)
 {
     BIO_OK_CTX *ctx;
 
-    ctx = OPENSSL_malloc(sizeof(*ctx));
+    ctx = OPENSSL_zalloc(sizeof(*ctx));
     if (ctx == NULL)
         return (0);
 
-    ctx->buf_len = 0;
-    ctx->buf_off = 0;
-    ctx->buf_len_save = 0;
-    ctx->buf_off_save = 0;
     ctx->cont = 1;
-    ctx->finished = 0;
-    ctx->blockout = 0;
     ctx->sigio = 1;
-
     EVP_MD_CTX_init(&ctx->md);
-
     bi->init = 0;
     bi->ptr = (char *)ctx;
     bi->flags = 0;