[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35765 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35765 - gnunet/src/fs |
Date: |
Thu, 21 May 2015 11:50:14 +0200 |
Author: grothoff
Date: 2015-05-21 11:50:14 +0200 (Thu, 21 May 2015)
New Revision: 35765
Modified:
gnunet/src/fs/gnunet-service-fs_cp.c
gnunet/src/fs/gnunet-service-fs_push.c
Log:
-adding a few extra checks for #3615
Modified: gnunet/src/fs/gnunet-service-fs_cp.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_cp.c 2015-05-21 09:20:52 UTC (rev
35764)
+++ gnunet/src/fs/gnunet-service-fs_cp.c 2015-05-21 09:50:14 UTC (rev
35765)
@@ -611,6 +611,7 @@
{
struct GSF_ConnectedPeer *cp = cls;
+ GNUNET_assert (NULL != cp->respect_iterate_req);
cp->respect_iterate_req = NULL;
if ((NULL != record) && (sizeof (cp->disk_respect) == record->value_size))
cp->disk_respect = cp->ppd.respect = *((uint32_t *)record->value);
Modified: gnunet/src/fs/gnunet-service-fs_push.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_push.c 2015-05-21 09:20:52 UTC (rev
35764)
+++ gnunet/src/fs/gnunet-service-fs_push.c 2015-05-21 09:50:14 UTC (rev
35765)
@@ -606,6 +606,15 @@
if (GNUNET_YES != enabled)
return;
+ for (mrp = peer_head; NULL != mrp; mrp = mrp->next)
+ if (mrp->peer == peer)
+ break;
+ if (NULL != mrp)
+ {
+ GNUNET_break (0);
+ return;
+ }
+
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Adding peer %s to list for pushing\n",
GNUNET_i2s (GSF_connected_peer_get_identity2_(peer)));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35765 - gnunet/src/fs,
gnunet <=