diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-07-30 18:42:06 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-07-30 18:42:06 +0000 |
commit | fc68215435a6c5cc30a34126bce3cfc154ba4d11 (patch) | |
tree | d4e2ffe3c1e7b80c910fbf343e1670bebbaa8b79 /src/cadet | |
parent | 8f370b86340ba3a8220d3f38b47e0c42f34a977a (diff) | |
download | gnunet-fc68215435a6c5cc30a34126bce3cfc154ba4d11.tar.gz gnunet-fc68215435a6c5cc30a34126bce3cfc154ba4d11.zip |
- don't try to salvage traffic if no payload is queued
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 06a227db7..9eb17ad8d 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -1282,7 +1282,8 @@ connection_fwd_timeout (void *cls, | |||
1282 | return; | 1282 | return; |
1283 | } | 1283 | } |
1284 | 1284 | ||
1285 | if (GCC_is_origin (c, GNUNET_NO)) /* If dest, salvage queued traffic. */ | 1285 | /* If dest, salvage queued traffic. */ |
1286 | if (GCC_is_origin (c, GNUNET_NO) && 0 < c->bck_fc.queue_n) | ||
1286 | { | 1287 | { |
1287 | struct GNUNET_MessageHeader *out_msg; | 1288 | struct GNUNET_MessageHeader *out_msg; |
1288 | struct CadetPeer *neighbor; | 1289 | struct CadetPeer *neighbor; |
@@ -1343,7 +1344,8 @@ connection_bck_timeout (void *cls, | |||
1343 | return; | 1344 | return; |
1344 | } | 1345 | } |
1345 | 1346 | ||
1346 | if (GCC_is_origin (c, GNUNET_YES)) /* If dest, salvage queued traffic. */ | 1347 | /* If dest, salvage queued traffic. */ |
1348 | if (GCC_is_origin (c, GNUNET_YES) && 0 < c->fwd_fc.queue_n) | ||
1347 | { | 1349 | { |
1348 | struct GNUNET_MessageHeader *out_msg; | 1350 | struct GNUNET_MessageHeader *out_msg; |
1349 | struct CadetPeer *neighbor; | 1351 | struct CadetPeer *neighbor; |