gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r29386 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r29386 - gnunet/src/gns
Date: Wed, 18 Sep 2013 17:48:02 +0200

Author: grothoff
Date: 2013-09-18 17:48:02 +0200 (Wed, 18 Sep 2013)
New Revision: 29386

Modified:
   gnunet/src/gns/gnunet-gns-proxy.c
Log:
-handle failure to load certs more nicely

Modified: gnunet/src/gns/gnunet-gns-proxy.c
===================================================================
--- gnunet/src/gns/gnunet-gns-proxy.c   2013-09-18 15:38:21 UTC (rev 29385)
+++ gnunet/src/gns/gnunet-gns-proxy.c   2013-09-18 15:48:02 UTC (rev 29386)
@@ -1764,9 +1764,8 @@
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 _("Unable to import private key from file `%s'\n"),
                keyfile);
-    GNUNET_break (0);
   }
-  GNUNET_free (key_data.data);
+  GNUNET_free_non_null (key_data.data);
   return (GNUTLS_E_SUCCESS != ret) ? GNUNET_SYSERR : GNUNET_OK;
 }
 
@@ -1792,9 +1791,8 @@
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                _("Unable to import certificate %s\n"), certfile);
-    GNUNET_break (0);
   }
-  GNUNET_free (cert_data.data);
+  GNUNET_free_non_null (cert_data.data);
   return (GNUTLS_E_SUCCESS != ret) ? GNUNET_SYSERR : GNUNET_OK;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]