aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/vpn_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-24 14:42:51 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-24 14:42:51 +0000
commitc5652406040cfcd7b183bbab8e963b57982f4bca (patch)
tree08b5bda9119169606ab26756afef64c91fe14fec /src/vpn/vpn_api.c
parent8f0592bb531e60bd924ee1c0e9602d10220deb70 (diff)
downloadgnunet-c5652406040cfcd7b183bbab8e963b57982f4bca.tar.gz
gnunet-c5652406040cfcd7b183bbab8e963b57982f4bca.zip
-bugfixes
Diffstat (limited to 'src/vpn/vpn_api.c')
-rw-r--r--src/vpn/vpn_api.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/vpn/vpn_api.c b/src/vpn/vpn_api.c
index 3f8d04523..494c6d857 100644
--- a/src/vpn/vpn_api.c
+++ b/src/vpn/vpn_api.c
@@ -261,9 +261,13 @@ transmit_request (void *cls,
261 while ( (NULL != rr) && 261 while ( (NULL != rr) &&
262 (0 != rr->request_id) ) 262 (0 != rr->request_id) )
263 rr = rr->next; 263 rr = rr->next;
264 if ( (NULL == rr) || 264 if (NULL == rr)
265 (0 == size) )
266 return 0; 265 return 0;
266 if (0 == size)
267 {
268 reconnect (vh);
269 return 0;
270 }
267 271
268 /* if first request, start receive loop */ 272 /* if first request, start receive loop */
269 if (0 == vh->request_id_gen) 273 if (0 == vh->request_id_gen)
@@ -364,9 +368,10 @@ connect_task (void *cls,
364{ 368{
365 struct GNUNET_VPN_Handle *vh = cls; 369 struct GNUNET_VPN_Handle *vh = cls;
366 370
371 vh->rt = GNUNET_SCHEDULER_NO_TASK;
367 vh->client = GNUNET_CLIENT_connect ("vpn", vh->cfg); 372 vh->client = GNUNET_CLIENT_connect ("vpn", vh->cfg);
368 GNUNET_assert (NULL != vh->client); 373 GNUNET_assert (NULL != vh->client);
369 GNUNET_assert (NULL != vh->th); 374 GNUNET_assert (NULL == vh->th);
370 if (NULL != vh->rr_head) 375 if (NULL != vh->rr_head)
371 vh->th = GNUNET_CLIENT_notify_transmit_ready (vh->client, 376 vh->th = GNUNET_CLIENT_notify_transmit_ready (vh->client,
372 sizeof (struct RedirectToServiceRequestMessage), 377 sizeof (struct RedirectToServiceRequestMessage),