mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
Merge pull request #657 from yatharth-arm/yk/genfw-1505
Fix `cert_create` tool for Segmentation fault
This commit is contained in:
@@ -428,9 +428,11 @@ int main(int argc, char *argv[])
|
||||
*/
|
||||
switch (ext->type) {
|
||||
case EXT_TYPE_NVCOUNTER:
|
||||
nvctr = atoi(ext->arg);
|
||||
CHECK_NULL(cert_ext, ext_new_nvcounter(ext_nid,
|
||||
if (ext->arg) {
|
||||
nvctr = atoi(ext->arg);
|
||||
CHECK_NULL(cert_ext, ext_new_nvcounter(ext_nid,
|
||||
EXT_CRIT, nvctr));
|
||||
}
|
||||
break;
|
||||
case EXT_TYPE_HASH:
|
||||
if (ext->arg == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user