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/gnunet-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/gnunet-hello.c')
-rw-r--r-- | src/hello/gnunet-hello.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hello/gnunet-hello.c b/src/hello/gnunet-hello.c index e857bde26..93eaeef2b 100644 --- a/src/hello/gnunet-hello.c +++ b/src/hello/gnunet-hello.c | |||
@@ -85,14 +85,14 @@ add_to_buf (void *cls, const struct GNUNET_HELLO_Address *address, | |||
85 | * @param buf where to add the addresses | 85 | * @param buf where to add the addresses |
86 | * @return number of bytes added, 0 to terminate | 86 | * @return number of bytes added, 0 to terminate |
87 | */ | 87 | */ |
88 | static size_t | 88 | static ssize_t |
89 | add_from_hello (void *cls, size_t max, void *buf) | 89 | add_from_hello (void *cls, size_t max, void *buf) |
90 | { | 90 | { |
91 | struct GNUNET_HELLO_Message **orig = cls; | 91 | struct GNUNET_HELLO_Message **orig = cls; |
92 | struct AddContext ac; | 92 | struct AddContext ac; |
93 | 93 | ||
94 | if (NULL == *orig) | 94 | if (NULL == *orig) |
95 | return 0; /* already done */ | 95 | return GNUNET_SYSERR; /* already done */ |
96 | ac.buf = buf; | 96 | ac.buf = buf; |
97 | ac.max = max; | 97 | ac.max = max; |
98 | ac.ret = 0; | 98 | ac.ret = 0; |