Commit 32bc641d authored by danh-arm's avatar danh-arm Committed by GitHub
Browse files

Merge pull request #657 from yatharth-arm/yk/genfw-1505

Fix `cert_create` tool for Segmentation fault
parents 6f511c47 f16db56a
...@@ -428,9 +428,11 @@ int main(int argc, char *argv[]) ...@@ -428,9 +428,11 @@ int main(int argc, char *argv[])
*/ */
switch (ext->type) { switch (ext->type) {
case EXT_TYPE_NVCOUNTER: case EXT_TYPE_NVCOUNTER:
if (ext->arg) {
nvctr = atoi(ext->arg); nvctr = atoi(ext->arg);
CHECK_NULL(cert_ext, ext_new_nvcounter(ext_nid, CHECK_NULL(cert_ext, ext_new_nvcounter(ext_nid,
EXT_CRIT, nvctr)); EXT_CRIT, nvctr));
}
break; break;
case EXT_TYPE_HASH: case EXT_TYPE_HASH:
if (ext->arg == NULL) { if (ext->arg == NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment