don't memset(data,0,...) if data is NULL

Submitted by: anonymous
PR: 254
This commit is contained in:
Bodo Möller 2002-08-29 11:45:40 +00:00
parent 41cc7096b8
commit 6ff7c95843

View file

@ -368,8 +368,11 @@ err:
memset(iv,0,sizeof(iv));
memset((char *)&ctx,0,sizeof(ctx));
memset(buf,0,PEM_BUFSIZE);
memset(data,0,(unsigned int)dsize);
OPENSSL_free(data);
if (data != NULL)
{
memset(data,0,(unsigned int)dsize);
OPENSSL_free(data);
}
return(ret);
}