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