diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-03 09:34:15 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-03 09:34:15 +0000 |
commit | 7d6e6b045a300cf753e685bc18ec0b1e264d1a25 (patch) | |
tree | 2e7069a9bfb46aef0ea9a45b944fbc934aaa2ce1 /src/peerinfo/test_peerinfo_api.c | |
parent | 84bcdbdd34bfa4d597ae2635146fe15631b46f44 (diff) | |
download | gnunet-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.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c index d69456e0c..b0d120869 100644 --- a/src/peerinfo/test_peerinfo_api.c +++ b/src/peerinfo/test_peerinfo_api.c | |||
@@ -60,15 +60,15 @@ check_it (void *cls, const struct GNUNET_HELLO_Address *address, | |||
60 | } | 60 | } |
61 | 61 | ||
62 | 62 | ||
63 | static size_t | 63 | static ssize_t |
64 | address_generator (void *cls, size_t max, void *buf) | 64 | address_generator (void *cls, size_t max, void *buf) |
65 | { | 65 | { |
66 | size_t *agc = cls; | 66 | size_t *agc = cls; |
67 | size_t ret; | 67 | ssize_t ret; |
68 | struct GNUNET_HELLO_Address address; | 68 | struct GNUNET_HELLO_Address address; |
69 | 69 | ||
70 | if (0 == *agc) | 70 | if (0 == *agc) |
71 | return 0; | 71 | return GNUNET_SYSERR; /* Done */ |
72 | memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity)); | 72 | memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity)); |
73 | address.address = "Address"; | 73 | address.address = "Address"; |
74 | address.transport_name = "peerinfotest"; | 74 | address.transport_name = "peerinfotest"; |