gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r8190 - GNUnet/src/applications/fs/ecrs


From: gnunet
Subject: [GNUnet-SVN] r8190 - GNUnet/src/applications/fs/ecrs
Date: Wed, 4 Feb 2009 16:48:54 -0700 (MST)

Author: grothoff
Date: 2009-02-04 16:48:54 -0700 (Wed, 04 Feb 2009)
New Revision: 8190

Modified:
   GNUnet/src/applications/fs/ecrs/namespace.c
Log:
gnunetd not running should not cause an assertion failure:


Modified: GNUnet/src/applications/fs/ecrs/namespace.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/namespace.c 2009-02-04 22:25:19 UTC (rev 
8189)
+++ GNUnet/src/applications/fs/ecrs/namespace.c 2009-02-04 23:48:54 UTC (rev 
8190)
@@ -253,9 +253,14 @@
   value->anonymity_level = htonl (anonymityLevel);
   value->expiration_time = GNUNET_htonll (expiration);
   sock = GNUNET_client_connection_create (ectx, cfg);
+  if (sock == NULL)
+    {
+      GNUNET_free (value);
+      GNUNET_RSA_free_key (namespace_priv_key);
+      return NULL;
+    }
   if (GNUNET_OK != GNUNET_FS_insert (sock, value))
     {
-      GNUNET_GE_BREAK (ectx, 0);
       GNUNET_free (value);
       GNUNET_client_connection_destroy (sock);
       GNUNET_RSA_free_key (namespace_priv_key);





reply via email to

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