From e31ea3478707575739f5f69ffb8ee329597914f4 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 31 Jul 2012 12:15:21 +0000 Subject: [PATCH] - fix overflow condition --- src/mesh/mesh_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index fe600e37c..b9ac8f94d 100644 --- 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; -- 2.25.1