diff options
author | Stef Walter <stef@thewalter.net> | 2014-01-13 18:07:29 +0100 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-01-13 18:11:04 +0100 |
commit | f875bda849626cb5b894fe56985408ab7ee8f9a3 (patch) | |
tree | ebfb92219b6dbe75bb481a00e28e91d0cdc5fb6c /p11-kit | |
parent | bc60631d3e327fd97f53c68c5b3134e4cefad7e1 (diff) |
iter: Fix return value in rare memory allocation case
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/iter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/iter.c b/p11-kit/iter.c index b6861a5..5301162 100644 --- a/p11-kit/iter.c +++ b/p11-kit/iter.c @@ -860,7 +860,7 @@ p11_kit_iter_load_attributes (P11KitIter *iter, } else { template[i].pValue = realloc (original[i].pValue, template[i].ulValueLen); - return_val_if_fail (template[i].pValue != NULL, 0); + return_val_if_fail (template[i].pValue != NULL, CKR_HOST_MEMORY); } } |