aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_scheduling.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-08 09:45:08 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-08 09:45:08 +0000
commit07cfe12a0266c84fe0679e0e8908f4d8d9fa3caf (patch)
tree7c1c2af6475355bc68a685230598d88d1ba96f51 /src/ats/gnunet-service-ats_scheduling.c
parentdac8fd72165111618d388a934bcb2891cb24fbcb (diff)
downloadgnunet-07cfe12a0266c84fe0679e0e8908f4d8d9fa3caf.tar.gz
gnunet-07cfe12a0266c84fe0679e0e8908f4d8d9fa3caf.zip
- fix for 601 assertion
Diffstat (limited to 'src/ats/gnunet-service-ats_scheduling.c')
-rw-r--r--src/ats/gnunet-service-ats_scheduling.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ats/gnunet-service-ats_scheduling.c b/src/ats/gnunet-service-ats_scheduling.c
index ba14637b0..d8ab0c927 100644
--- a/src/ats/gnunet-service-ats_scheduling.c
+++ b/src/ats/gnunet-service-ats_scheduling.c
@@ -274,6 +274,7 @@ GAS_handle_address_in_use (void *cls, struct GNUNET_SERVER_Client *client,
274 const struct AddressUseMessage *m; 274 const struct AddressUseMessage *m;
275 const char *address; 275 const char *address;
276 const char *plugin_name; 276 const char *plugin_name;
277 int res;
277 uint16_t address_length; 278 uint16_t address_length;
278 uint16_t plugin_name_length; 279 uint16_t plugin_name_length;
279 280
@@ -309,10 +310,14 @@ GAS_handle_address_in_use (void *cls, struct GNUNET_SERVER_Client *client,
309 } 310 }
310 311
311 in_use = ntohs (m->in_use); 312 in_use = ntohs (m->in_use);
312 GAS_addresses_in_use (&m->peer, plugin_name, address, address_length, 313 res = GAS_addresses_in_use (&m->peer,
313 ntohl (m->session_id), in_use); 314 plugin_name,
314 315 address,
315 GNUNET_SERVER_receive_done (client, GNUNET_OK); 316 address_length,
317 ntohl (m->session_id),
318 in_use);
319
320 GNUNET_SERVER_receive_done (client, res);
316} 321}
317 322
318/** 323/**