check if scconf_find_blocks returns NULL;
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2710 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
7e15333537
commit
2a1c6cb87e
|
@ -1220,6 +1220,8 @@ scconf_block *_get_conf_block(sc_context_t *ctx, const char *name1, const char *
|
|||
scconf_block **blocks;
|
||||
|
||||
blocks = scconf_find_blocks(ctx->conf, ctx->conf_blocks[i], name1, name2);
|
||||
if (!blocks)
|
||||
return NULL;
|
||||
conf_block = blocks[0];
|
||||
free(blocks);
|
||||
if (conf_block != NULL && priority)
|
||||
|
|
Loading…
Reference in New Issue