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/transport/gnunet-service-transport_validation.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/transport/gnunet-service-transport_validation.c')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index eb3f4c07d..7c2675df3 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -1280,16 +1280,16 @@ validate_address_iterator (void *cls, | |||
1280 | * @param cls the 'struct ValidationEntry' with the validated address | 1280 | * @param cls the 'struct ValidationEntry' with the validated address |
1281 | * @param max space in buf | 1281 | * @param max space in buf |
1282 | * @param buf where to add the address | 1282 | * @param buf where to add the address |
1283 | * @return number of bytes written, 0 to signal the | 1283 | * @return number of bytes written, GNUNET_SYSERR to signal the |
1284 | * end of the iteration. | 1284 | * end of the iteration. |
1285 | */ | 1285 | */ |
1286 | static size_t | 1286 | static ssize_t |
1287 | add_valid_peer_address (void *cls, size_t max, void *buf) | 1287 | add_valid_peer_address (void *cls, size_t max, void *buf) |
1288 | { | 1288 | { |
1289 | struct ValidationEntry *ve = cls; | 1289 | struct ValidationEntry *ve = cls; |
1290 | 1290 | ||
1291 | if (GNUNET_YES == ve->copied) | 1291 | if (GNUNET_YES == ve->copied) |
1292 | return 0; /* terminate */ | 1292 | return GNUNET_SYSERR; /* Done */ |
1293 | ve->copied = GNUNET_YES; | 1293 | ve->copied = GNUNET_YES; |
1294 | return GNUNET_HELLO_add_address (ve->address, ve->valid_until, buf, max); | 1294 | return GNUNET_HELLO_add_address (ve->address, ve->valid_until, buf, max); |
1295 | } | 1295 | } |