don't memset(data,0,...) if data is NULL
Submitted by: anonymous PR: 254
This commit is contained in:
parent
3a00964dd3
commit
535cedf136
@ -366,8 +366,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…
x
Reference in New Issue
Block a user