diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-10-16 18:14:46 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-10-17 10:13:32 +0200 |
commit | 06323aed926ddc67bd18ed98e5af92035a8e3d39 (patch) | |
tree | a6866350652a525dbd27b49581da88f72a273ff8 /trust | |
parent | b10dadce5a3c921149b2c9fe0dec614f8076ebda (diff) |
build: Check return value of p11_dict_set
Diffstat (limited to 'trust')
-rw-r--r-- | trust/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trust/module.c b/trust/module.c index e09113b..24cda87 100644 --- a/trust/module.c +++ b/trust/module.c @@ -1321,7 +1321,8 @@ find_objects_match (CK_ATTRIBUTE *attrs, } value = memdup (oid->pValue, oid->ulValueLen); return_val_if_fail (value != NULL, false); - p11_dict_set (find->extensions, value, value); + if (!p11_dict_set (find->extensions, value, value)) + warn_if_reached (); } } |