diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-02-05 12:17:22 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-02-05 12:17:22 +0000 |
commit | db31b393db569fbe00a4e8f2183b633784ec7654 (patch) | |
tree | 4e68f883b32d624c956ffcb4845c3657f66963de /src | |
parent | 26493e327f40c4604bb559ca05fab46f622201ec (diff) | |
download | gnunet-db31b393db569fbe00a4e8f2183b633784ec7654.tar.gz gnunet-db31b393db569fbe00a4e8f2183b633784ec7654.zip |
wrong order
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 4df3d7c29..1e70e7b02 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -859,7 +859,7 @@ update_quota (struct NeighborList *n) | |||
859 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING | | 859 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING | |
860 | GNUNET_ERROR_TYPE_BULK, | 860 | GNUNET_ERROR_TYPE_BULK, |
861 | _ | 861 | _ |
862 | ("Update quota: last received is %llu, allowed is %u\n"), n->last_received, allowed); | 862 | ("Update quota: last received is %llu, allowed is %llu\n"), n->last_received, allowed); |
863 | 863 | ||
864 | if (n->last_received < allowed) | 864 | if (n->last_received < allowed) |
865 | { | 865 | { |
@@ -885,7 +885,7 @@ update_quota (struct NeighborList *n) | |||
885 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING | | 885 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING | |
886 | GNUNET_ERROR_TYPE_BULK, | 886 | GNUNET_ERROR_TYPE_BULK, |
887 | _ | 887 | _ |
888 | ("LAST RECEIVED: %llu greater than allowed : %u\n"), n->last_received, allowed); | 888 | ("LAST RECEIVED: %llu greater than allowed : %llu\n"), n->last_received, allowed); |
889 | /* more than twice the allowed rate! */ | 889 | /* more than twice the allowed rate! */ |
890 | n->quota_violation_count += 10; | 890 | n->quota_violation_count += 10; |
891 | } | 891 | } |
@@ -2325,8 +2325,8 @@ disconnect_neighbor (struct NeighborList *current_handle, int check) | |||
2325 | rpos->addresses = peer_pos->next; | 2325 | rpos->addresses = peer_pos->next; |
2326 | while (peer_pos != NULL) | 2326 | while (peer_pos != NULL) |
2327 | { | 2327 | { |
2328 | GNUNET_free(peer_pos); | ||
2329 | GNUNET_free(peer_pos->addr); | 2328 | GNUNET_free(peer_pos->addr); |
2329 | GNUNET_free(peer_pos); | ||
2330 | peer_pos = rpos->addresses; | 2330 | peer_pos = rpos->addresses; |
2331 | rpos->addresses = peer_pos->next; | 2331 | rpos->addresses = peer_pos->next; |
2332 | } | 2332 | } |