[gnome-keyring/trust-store] [gkm] Don't barf on zero length certificate files.



commit 5adba30aec9c7b10847b2eb39dc28f816882af31
Author: Stef Walter <stef memberwebs com>
Date:   Tue Sep 21 03:58:26 2010 +0000

    [gkm] Don't barf on zero length certificate files.
    
    Don't raise an error on zero length certificate files. Simply
    print message and continue loading other files.

 pkcs11/gkm/gkm-certificate.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/gkm/gkm-certificate.c b/pkcs11/gkm/gkm-certificate.c
index 3b2a6ae..910c365 100644
--- a/pkcs11/gkm/gkm-certificate.c
+++ b/pkcs11/gkm/gkm-certificate.c
@@ -526,7 +526,6 @@ gkm_certificate_real_load (GkmSerializable *base, GkmSecret *login, gconstpointe
 
 	g_return_val_if_fail (GKM_IS_CERTIFICATE (self), FALSE);
 	g_return_val_if_fail (data, FALSE);
-	g_return_val_if_fail (n_data, FALSE);
 
 	copy = g_memdup (data, n_data);
 



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