[gnome-keyring/trust-store] [pkcs11] Fix typo which fails returning hashed attributes.



commit 7015da0d91adc360cad8d460f4ef4bfd4c9d77ab
Author: Stef Walter <stefw collabora co uk>
Date:   Fri Nov 26 19:37:05 2010 +0000

    [pkcs11] Fix typo which fails returning hashed attributes.

 pkcs11/gkm/gkm-attributes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/gkm/gkm-attributes.c b/pkcs11/gkm/gkm-attributes.c
index 8aff557..6243876 100644
--- a/pkcs11/gkm/gkm-attributes.c
+++ b/pkcs11/gkm/gkm-attributes.c
@@ -363,7 +363,7 @@ gkm_attribute_set_checksum (CK_ATTRIBUTE_PTR attr, GChecksumType ctype,
 	g_return_val_if_fail (n_data, CKR_GENERAL_ERROR);
 
 	length = g_checksum_type_get_length (ctype);
-	g_return_val_if_fail (length < 0, CKR_GENERAL_ERROR);
+	g_return_val_if_fail (length > 0, CKR_GENERAL_ERROR);
 
 	/* Just asking for the length */
 	if (!attr->pValue) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]