summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bf_lbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bio/bf_lbuf.c')
-rw-r--r--crypto/bio/bf_lbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bf_lbuf.c b/crypto/bio/bf_lbuf.c
index d7906b419c..e948e924b9 100644
--- a/crypto/bio/bf_lbuf.c
+++ b/crypto/bio/bf_lbuf.c
@@ -104,7 +104,7 @@ static int linebuffer_new(BIO *bi)
{
BIO_LINEBUFFER_CTX *ctx;
- ctx = OPENSSL_malloc(sizeof(BIO_LINEBUFFER_CTX));
+ ctx = OPENSSL_malloc(sizeof(*ctx));
if (ctx == NULL)
return (0);
ctx->obuf = OPENSSL_malloc(DEFAULT_LINEBUFFER_SIZE);