X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fbio%2Fbf_lbuf.c;h=e948e924b92eefa5468aa07150c6bd96fa38b369;hb=b4faea50c35d92a67d1369355b49cc3efba78406;hp=d7906b419cfdb66e73f8dfe7812a912aa868699c;hpb=8920a7cd04f43b1a090d0b0a8c9e16b94c6898d4;p=oweals%2Fopenssl.git 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);