[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37953 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37953 - gnunet/src/cadet |
Date: |
Tue, 20 Sep 2016 03:22:02 +0200 |
Author: bartpolot
Date: 2016-09-20 03:22:02 +0200 (Tue, 20 Sep 2016)
New Revision: 37953
Modified:
gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
-use is_fwd to retrieve traffic direction
Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c 2016-09-20 01:22:01 UTC
(rev 37952)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c 2016-09-20 01:22:02 UTC
(rev 37953)
@@ -3067,7 +3067,6 @@
GCC_neighbor_disconnected (struct CadetConnection *c, struct CadetPeer *peer)
{
struct CadetFlowControl *fc;
- struct CadetPeer *hop;
char peer_name[16];
int fwd;
@@ -3080,14 +3079,12 @@
invalidate_paths (c, peer);
- hop = get_prev_hop (c);
- if (NULL == hop)
+ fwd = is_fwd (c, peer);
+ if (GNUNET_SYSERR == fwd)
{
- /* Path was NULL, we should have deleted the connection. */
GNUNET_break (0);
return;
}
- fwd = (peer == hop);
if ( (GNUNET_YES == GCC_is_terminal (c, fwd)) ||
(GNUNET_NO != c->destroy) )
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37953 - gnunet/src/cadet,
gnunet <=