gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r30884 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r30884 - gnunet/src/fs
Date: Tue, 26 Nov 2013 23:30:41 +0100

Author: grothoff
Date: 2013-11-26 23:30:41 +0100 (Tue, 26 Nov 2013)
New Revision: 30884

Modified:
   gnunet/src/fs/gnunet-service-fs_mesh_client.c
Log:
-handle case where channel is NULL (failed to be created?), see #3125

Modified: gnunet/src/fs/gnunet-service-fs_mesh_client.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_mesh_client.c       2013-11-26 20:34:11 UTC 
(rev 30883)
+++ gnunet/src/fs/gnunet-service-fs_mesh_client.c       2013-11-26 22:30:41 UTC 
(rev 30884)
@@ -219,7 +219,8 @@
              "Resetting mesh channel to %s\n",
              GNUNET_i2s (&mh->target));
   mh->channel = NULL;
-  GNUNET_MESH_channel_destroy (channel);
+  if (NULL != channel)
+    GNUNET_MESH_channel_destroy (channel);
   GNUNET_CONTAINER_multihashmap_iterate (mh->waiting_map,
                                         &move_to_pending,
                                         mh);
@@ -294,9 +295,9 @@
  * query via a mesh.
  *
  * @param cls the struct MeshHandle for which we did the write call
- * @param size the number of bytes that can be written to 'buf'
+ * @param size the number of bytes that can be written to @a buf
  * @param buf where to write the message
- * @return number of bytes written to 'buf'
+ * @return number of bytes written to @a buf
  */
 static size_t
 transmit_sqm (void *cls,
@@ -435,7 +436,7 @@
  * @param channel channel handle
  * @param channel_ctx channel context
  * @param message the actual message
- * @return GNUNET_OK on success, GNUNET_SYSERR to stop further processing
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR to stop further processing
  */
 static int
 reply_cb (void *cls,
@@ -549,7 +550,7 @@
  * @param query hash to query for the block
  * @param type desired type for the block
  * @param proc function to call with result
- * @param proc_cls closure for 'proc'
+ * @param proc_cls closure for @a proc
  * @return handle to cancel the operation
  */
 struct GSF_MeshRequest *




reply via email to

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