Bugzilla Bug 298957: code cleanup -- the array size can be MAX_TEMPL_ATTRS.

r=relyea.


git-svn-id: svn://10.0.0.236/trunk@175704 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtchang%redhat.com 2005-07-06 18:34:39 +00:00
parent 344fccd6f3
commit 2b95f59302

View File

@ -1183,7 +1183,7 @@ PK11_DeriveWithFlagsPerm( PK11SymKey *baseKey, CK_MECHANISM_TYPE derive,
int keySize, CK_FLAGS flags, PRBool isPerm)
{
CK_BBOOL cktrue = CK_TRUE;
CK_ATTRIBUTE keyTemplate[MAX_TEMPL_ATTRS+1];
CK_ATTRIBUTE keyTemplate[MAX_TEMPL_ATTRS];
CK_ATTRIBUTE *attrs;
unsigned int templateCount = 0;