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/hello/test_friend_hello.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/hello/test_friend_hello.c')
-rw-r--r-- | src/hello/test_friend_hello.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hello/test_friend_hello.c b/src/hello/test_friend_hello.c index 019bf4b9a..79a55925c 100644 --- a/src/hello/test_friend_hello.c +++ b/src/hello/test_friend_hello.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include "platform.h" | 25 | #include "platform.h" |
26 | #include "gnunet_hello_lib.h" | 26 | #include "gnunet_hello_lib.h" |
27 | 27 | ||
28 | static size_t | 28 | static ssize_t |
29 | my_addr_gen (void *cls, size_t max, void *buf) | 29 | my_addr_gen (void *cls, size_t max, void *buf) |
30 | { | 30 | { |
31 | unsigned int *i = cls; | 31 | unsigned int *i = cls; |
@@ -35,7 +35,7 @@ my_addr_gen (void *cls, size_t max, void *buf) | |||
35 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 35 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
36 | "DEBUG: my_addr_gen called with i = %d\n", *i); | 36 | "DEBUG: my_addr_gen called with i = %d\n", *i); |
37 | if (0 == *i) | 37 | if (0 == *i) |
38 | return 0; | 38 | return GNUNET_SYSERR; /* Stop iteration */ |
39 | memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity)); | 39 | memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity)); |
40 | address.address = "address_information"; | 40 | address.address = "address_information"; |
41 | address.transport_name = "test"; | 41 | address.transport_name = "test"; |