projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-removed obsolete functions
[oweals/gnunet.git]
/
src
/
fs
/
gnunet-service-fs_push.c
diff --git
a/src/fs/gnunet-service-fs_push.c
b/src/fs/gnunet-service-fs_push.c
index 88c92828f58bdc107132154129c15e1be33bdc85..270188ef4595b9e7bc6458f70df3286e3bb94a97 100644
(file)
--- a/
src/fs/gnunet-service-fs_push.c
+++ b/
src/fs/gnunet-service-fs_push.c
@@
-1,6
+1,6
@@
/*
This file is part of GNUnet.
/*
This file is part of GNUnet.
- (C) 2011 Christian Grothoff (and other contributing authors)
+
Copyright
(C) 2011 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@
-14,8
+14,8
@@
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
- Boston, MA 0211
1-1307
, USA.
+ Free Software Foundation, Inc., 5
1 Franklin Street, Fifth Floor
,
+ Boston, MA 0211
0-1301
, USA.
*/
/**
*/
/**
@@
-606,6
+606,16
@@
GSF_push_start_ (struct GSF_ConnectedPeer *peer)
if (GNUNET_YES != enabled)
return;
if (GNUNET_YES != enabled)
return;
+ for (mrp = peer_head; NULL != mrp; mrp = mrp->next)
+ if (mrp->peer == peer)
+ break;
+ if (NULL != mrp)
+ {
+ /* same peer added twice, must not happen */
+ 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)));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Adding peer %s to list for pushing\n",
GNUNET_i2s (GSF_connected_peer_get_identity2_(peer)));