diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index 55800b88c..a2068b31b 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c | |||
@@ -345,8 +345,8 @@ destroy_peer (void *cls) | |||
345 | GNUNET_CONTAINER_multipeermap_remove (peers, | 345 | GNUNET_CONTAINER_multipeermap_remove (peers, |
346 | &cp->pid, | 346 | &cp->pid, |
347 | cp)); | 347 | cp)); |
348 | GNUNET_free_non_null (cp->path_heads); | 348 | GNUNET_free (cp->path_heads); |
349 | GNUNET_free_non_null (cp->path_tails); | 349 | GNUNET_free (cp->path_tails); |
350 | cp->path_dll_length = 0; | 350 | cp->path_dll_length = 0; |
351 | if (NULL != cp->search_h) | 351 | if (NULL != cp->search_h) |
352 | { | 352 | { |
@@ -376,7 +376,7 @@ destroy_peer (void *cls) | |||
376 | GNUNET_SCHEDULER_cancel (cp->heap_cleanup_task); | 376 | GNUNET_SCHEDULER_cancel (cp->heap_cleanup_task); |
377 | cp->heap_cleanup_task = NULL; | 377 | cp->heap_cleanup_task = NULL; |
378 | } | 378 | } |
379 | GNUNET_free_non_null (cp->hello); | 379 | GNUNET_free (cp->hello); |
380 | /* Peer should not be freed if paths exist; if there are no paths, | 380 | /* Peer should not be freed if paths exist; if there are no paths, |
381 | there ought to be no connections, and without connections, no | 381 | there ought to be no connections, and without connections, no |
382 | notifications. Thus we can assert that mqm_head is empty at this | 382 | notifications. Thus we can assert that mqm_head is empty at this |
@@ -1552,6 +1552,7 @@ GCP_send_ooo (struct CadetPeer *cp, | |||
1552 | env); | 1552 | env); |
1553 | } | 1553 | } |
1554 | 1554 | ||
1555 | |||
1555 | /** | 1556 | /** |
1556 | * Checking if a monotime value is newer than the last monotime value received from a peer. If the time value is newer it will be stored at the peer. | 1557 | * Checking if a monotime value is newer than the last monotime value received from a peer. If the time value is newer it will be stored at the peer. |
1557 | * | 1558 | * |
@@ -1574,6 +1575,7 @@ GCP_check_and_update_monotime (struct CadetPeer *peer, | |||
1574 | return GNUNET_NO; | 1575 | return GNUNET_NO; |
1575 | } | 1576 | } |
1576 | 1577 | ||
1578 | |||
1577 | /** | 1579 | /** |
1578 | * Checking the signature for a monotime of a GNUNET_CADET_ConnectionCreateMessage. | 1580 | * Checking the signature for a monotime of a GNUNET_CADET_ConnectionCreateMessage. |
1579 | * | 1581 | * |