diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-08 14:33:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-08 14:33:42 +0000 |
commit | 023cf4e2f6a6d50c40e6717fcc67bb598f0f54a9 (patch) | |
tree | 34a324c1ff70f23245863f30bca3212571cb2efb /src/transport/gnunet-service-transport_validation.c | |
parent | 247e63b4eb4db92cc0cfb2df9ca66632cc6c90b1 (diff) | |
download | gnunet-023cf4e2f6a6d50c40e6717fcc67bb598f0f54a9.tar.gz gnunet-023cf4e2f6a6d50c40e6717fcc67bb598f0f54a9.zip |
-always assume at least MIN bandwidth, even if we got no quota or a quota lower than min
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index ee8cd9308..ccd077aab 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -1524,10 +1524,10 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, | |||
1524 | /* build HELLO to store in PEERINFO */ | 1524 | /* build HELLO to store in PEERINFO */ |
1525 | ve->copied = GNUNET_NO; | 1525 | ve->copied = GNUNET_NO; |
1526 | hello = GNUNET_HELLO_create (&ve->address->peer.public_key, | 1526 | hello = GNUNET_HELLO_create (&ve->address->peer.public_key, |
1527 | &add_valid_peer_address, | 1527 | &add_valid_peer_address, |
1528 | ve, | 1528 | ve, |
1529 | GNUNET_NO); | 1529 | GNUNET_NO); |
1530 | GNUNET_PEERINFO_add_peer (GST_peerinfo, | 1530 | GNUNET_PEERINFO_add_peer (GST_peerinfo, |
1531 | hello, | 1531 | hello, |
1532 | NULL, | 1532 | NULL, |
1533 | NULL); | 1533 | NULL); |
@@ -1549,7 +1549,6 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello) | |||
1549 | const struct GNUNET_HELLO_Message *hm = | 1549 | const struct GNUNET_HELLO_Message *hm = |
1550 | (const struct GNUNET_HELLO_Message *) hello; | 1550 | (const struct GNUNET_HELLO_Message *) hello; |
1551 | struct GNUNET_PeerIdentity pid; | 1551 | struct GNUNET_PeerIdentity pid; |
1552 | struct GNUNET_HELLO_Message *h; | ||
1553 | int friend; | 1552 | int friend; |
1554 | 1553 | ||
1555 | friend = GNUNET_HELLO_is_friend_only (hm); | 1554 | friend = GNUNET_HELLO_is_friend_only (hm); |