aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/test_peerinfo_api_friend_only.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-06-03 09:34:15 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-06-03 09:34:15 +0000
commit7d6e6b045a300cf753e685bc18ec0b1e264d1a25 (patch)
tree2e7069a9bfb46aef0ea9a45b944fbc934aaa2ce1 /src/peerinfo/test_peerinfo_api_friend_only.c
parent84bcdbdd34bfa4d597ae2635146fe15631b46f44 (diff)
downloadgnunet-7d6e6b045a300cf753e685bc18ec0b1e264d1a25.tar.gz
gnunet-7d6e6b045a300cf753e685bc18ec0b1e264d1a25.zip
fix for bug #0003416: do not stop parsing uri when plugin is not found
- changed semantics for address generator cb: GNUNET_SYSERR indicates stop, >= 0 indicates bytes added
Diffstat (limited to 'src/peerinfo/test_peerinfo_api_friend_only.c')
-rw-r--r--src/peerinfo/test_peerinfo_api_friend_only.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peerinfo/test_peerinfo_api_friend_only.c b/src/peerinfo/test_peerinfo_api_friend_only.c
index e2c4ec574..3b4eeb8f5 100644
--- a/src/peerinfo/test_peerinfo_api_friend_only.c
+++ b/src/peerinfo/test_peerinfo_api_friend_only.c
@@ -42,15 +42,15 @@ static unsigned int retries;
42 42
43static int global_ret; 43static int global_ret;
44 44
45static size_t 45static ssize_t
46address_generator (void *cls, size_t max, void *buf) 46address_generator (void *cls, size_t max, void *buf)
47{ 47{
48 size_t *agc = cls; 48 size_t *agc = cls;
49 size_t ret; 49 ssize_t ret;
50 struct GNUNET_HELLO_Address address; 50 struct GNUNET_HELLO_Address address;
51 51
52 if (0 == *agc) 52 if (0 == *agc)
53 return 0; 53 return GNUNET_SYSERR; /* Done */
54 memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity)); 54 memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity));
55 address.address = "Address"; 55 address.address = "Address";
56 address.transport_name = "peerinfotest"; 56 address.transport_name = "peerinfotest";