diff options
Diffstat (limited to 'trust/test-trust.c')
-rw-r--r-- | trust/test-trust.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/trust/test-trust.c b/trust/test-trust.c index 20306e0..802007d 100644 --- a/trust/test-trust.c +++ b/trust/test-trust.c @@ -131,6 +131,8 @@ test_check_attrs_msg (const char *file, CK_OBJECT_CLASS klass; CK_ATTRIBUTE *attr; + assert (expected != NULL); + if (!p11_attrs_find_ulong (expected, CKA_CLASS, &klass)) klass = CKA_INVALID; |