From a09d3490711cdb2967744b78c28ab7897ca7abd2 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 9 May 2002 19:38:34 +0000 Subject: [PATCH] Merge in recent changes from 0.9.6-stable. --- crypto/bio/b_print.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index f0a50c29be..d7a60eceea 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -716,12 +716,13 @@ doapr_outch( if (buffer) { while (*currlen >= *maxlen) { if (*buffer == NULL) { - assert(*sbuffer != NULL); if (*maxlen == 0) *maxlen = 1024; *buffer = OPENSSL_malloc(*maxlen); - if (*currlen > 0) + if (*currlen > 0) { + assert(*sbuffer != NULL); memcpy(*buffer, *sbuffer, *currlen); + } *sbuffer = NULL; } else { *maxlen += 1024; -- 2.25.1