From 06323aed926ddc67bd18ed98e5af92035a8e3d39 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 16 Oct 2018 18:14:46 +0200 Subject: build: Check return value of p11_dict_set --- trust/module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'trust') 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 (); } } -- cgit v1.1