don't memset(data,0,...) if data is NULL
Submitted by: anonymous PR: 254
This commit is contained in:
parent
41cc7096b8
commit
6ff7c95843
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue