projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b982bd
)
- simplify ack handling, die if trying to send conneciton-level ACK to clients
author
Bart Polot
<bart@net.in.tum.de>
Fri, 4 Nov 2016 09:47:19 +0000
(09:47 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Fri, 4 Nov 2016 09:47:19 +0000
(09:47 +0000)
src/cadet/gnunet-service-cadet_connection.c
patch
|
blob
|
history
diff --git
a/src/cadet/gnunet-service-cadet_connection.c
b/src/cadet/gnunet-service-cadet_connection.c
index bdf208a1aaf5e130360691e01e4510092b3f2a1b..6f186c82afd74a6b9c2445bb925682257aec52b8 100644
(file)
--- a/
src/cadet/gnunet-service-cadet_connection.c
+++ b/
src/cadet/gnunet-service-cadet_connection.c
@@
-560,15
+560,8
@@
send_ack (struct CadetConnection *c, unsigned int buffer, int fwd, int force)
uint32_t ack;
int delta;
- /* If origin, there is no connection to send ACKs. Wrong function! */
GCC_check_connections ();
- if (GCC_is_origin (c, fwd))
- {
- LOG (GNUNET_ERROR_TYPE_DEBUG, "connection %s is origin in %s\n",
- GCC_2s (c), GC_f2s (fwd));
- GNUNET_break (0);
- return;
- }
+ GNUNET_assert (GNUNET_NO == GCC_is_origin (c, fwd));
next_fc = fwd ? &c->fwd_fc : &c->bck_fc;
prev_fc = fwd ? &c->bck_fc : &c->fwd_fc;