From e5bf3c923c184b19e8c3ef7043080955479a2325 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 13 Feb 2015 13:02:24 +0000 Subject: size_t for buffer functions. Change BUF_MEM_grow and BUF_MEM_grow_clean to return size_t. Reviewed-by: Richard Levitte --- crypto/bio/bss_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/bio') diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c index d190765dc2..56e0d2e323 100644 --- a/crypto/bio/bss_mem.c +++ b/crypto/bio/bss_mem.c @@ -187,7 +187,7 @@ static int mem_write(BIO *b, const char *in, int inl) BIO_clear_retry_flags(b); blen = bm->length; - if (BUF_MEM_grow_clean(bm, blen + inl) != (blen + inl)) + if (BUF_MEM_grow_clean(bm, blen + inl) == 0) goto end; memcpy(&(bm->data[blen]), in, inl); ret = inl; -- cgit v1.2.3