aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns_api.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-16 09:16:58 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-16 09:16:58 +0000
commit2364b11771c64de0fb120d44f7cf41290f503cbc (patch)
tree7aff048fa2945ff2cb99cf777fd9064bdf5c7e9b /src/gns/gns_api.c
parent82e1974e76ae1c4a0002dfc2b81d3b3f07d50637 (diff)
downloadgnunet-2364b11771c64de0fb120d44f7cf41290f503cbc.tar.gz
gnunet-2364b11771c64de0fb120d44f7cf41290f503cbc.zip
-fixes
Diffstat (limited to 'src/gns/gns_api.c')
-rw-r--r--src/gns/gns_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c
index 26870cdfd..5733e1cf3 100644
--- a/src/gns/gns_api.c
+++ b/src/gns/gns_api.c
@@ -362,6 +362,7 @@ process_shorten_reply (struct GNUNET_GNS_QueueEntry *qe,
362 { 362 {
363 GNUNET_break (0); 363 GNUNET_break (0);
364 force_reconnect (h); 364 force_reconnect (h);
365 GNUNET_free(qe);
365 return; 366 return;
366 } 367 }
367 368
@@ -372,6 +373,7 @@ process_shorten_reply (struct GNUNET_GNS_QueueEntry *qe,
372 GNUNET_CLIENT_receive (h->client, &process_message, h, 373 GNUNET_CLIENT_receive (h->client, &process_message, h,
373 GNUNET_TIME_UNIT_FOREVER_REL); 374 GNUNET_TIME_UNIT_FOREVER_REL);
374 qe->shorten_proc(qe->proc_cls, short_name); 375 qe->shorten_proc(qe->proc_cls, short_name);
376 GNUNET_free(qe);
375 377
376} 378}
377 379
@@ -397,6 +399,7 @@ process_get_auth_reply (struct GNUNET_GNS_QueueEntry *qe,
397 if (ntohs (((struct GNUNET_MessageHeader*)msg)->size) < 399 if (ntohs (((struct GNUNET_MessageHeader*)msg)->size) <
398 sizeof (struct GNUNET_GNS_ClientGetAuthResultMessage)) 400 sizeof (struct GNUNET_GNS_ClientGetAuthResultMessage))
399 { 401 {
402 GNUNET_free(qe);
400 GNUNET_break (0); 403 GNUNET_break (0);
401 force_reconnect (h); 404 force_reconnect (h);
402 return; 405 return;
@@ -409,6 +412,7 @@ process_get_auth_reply (struct GNUNET_GNS_QueueEntry *qe,
409 GNUNET_CLIENT_receive (h->client, &process_message, h, 412 GNUNET_CLIENT_receive (h->client, &process_message, h,
410 GNUNET_TIME_UNIT_FOREVER_REL); 413 GNUNET_TIME_UNIT_FOREVER_REL);
411 qe->auth_proc(qe->proc_cls, auth_name); 414 qe->auth_proc(qe->proc_cls, auth_name);
415 GNUNET_free(qe);
412 416
413} 417}
414/** 418/**
@@ -433,6 +437,7 @@ process_lookup_reply (struct GNUNET_GNS_QueueEntry *qe,
433 437
434 if (len < sizeof (struct GNUNET_GNS_ClientLookupResultMessage)) 438 if (len < sizeof (struct GNUNET_GNS_ClientLookupResultMessage))
435 { 439 {
440 GNUNET_free(qe);
436 GNUNET_break (0); 441 GNUNET_break (0);
437 force_reconnect (h); 442 force_reconnect (h);
438 return; 443 return;
@@ -459,6 +464,7 @@ process_lookup_reply (struct GNUNET_GNS_QueueEntry *qe,
459 ntohl(msg->rd_count)); 464 ntohl(msg->rd_count));
460 qe->lookup_proc(qe->proc_cls, rd_count, rd); 465 qe->lookup_proc(qe->proc_cls, rd_count, rd);
461 } 466 }
467 GNUNET_free(qe);
462} 468}
463 469
464/** 470/**