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:
f2a80a0
)
- fix overflow condition
author
Bart Polot
<bart@net.in.tum.de>
Tue, 31 Jul 2012 12:15:21 +0000
(12:15 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Tue, 31 Jul 2012 12:15:21 +0000
(12:15 +0000)
src/mesh/mesh_api.c
patch
|
blob
|
history
diff --git
a/src/mesh/mesh_api.c
b/src/mesh/mesh_api.c
index fe600e37c79871af773196eab93762e3d7364a5c..b9ac8f94d17aeff378275408dd623d5f1fe7cc11 100644
(file)
--- a/
src/mesh/mesh_api.c
+++ b/
src/mesh/mesh_api.c
@@
-396,7
+396,7
@@
message_ready_size (struct GNUNET_MESH_Handle *h)
{
t = th->tunnel;
if (GNUNET_NO == th_is_payload (th) ||
- (t->max_pid > t->pid || PID_OVERFLOW (t->
max_pid, t->
pid)))
+ (t->max_pid > t->pid || PID_OVERFLOW (t->
pid, t->max_
pid)))
return th->size;
}
return 0;