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:33:43 +00:00
parent 9370c84361
commit 145a2794da

View file

@ -405,8 +405,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);
}