if (BUF_MEM_grow(bm,blen+inl) != (blen+inl))
if (BUF_MEM_grow_clean(bm,blen+inl) != (blen+inl))
static int mem_write(BIO *b, const char *in, int inl)	{	int ret= -1;	int blen;	BUF_MEM *bm;	bm=(BUF_MEM *)b->ptr;	if (in == NULL)		{		BIOerr(BIO_F_MEM_WRITE,BIO_R_NULL_PARAMETER);		goto end;		}	if(b->flags & BIO_FLAGS_MEM_RDONLY) {		BIOerr(BIO_F_MEM_WRITE,BIO_R_WRITE_TO_READ_ONLY_BIO);		goto end;	}	BIO_clear_retry_flags(b);	blen=bm->length;	if (BUF_MEM_grow(bm,blen+inl) != (blen+inl))		goto end;	memcpy(&(bm->data[blen]),in,inl);	ret=inl;end:	return(ret);	}