From: Bart Polot Date: Tue, 31 Jul 2012 12:15:21 +0000 (+0000) Subject: - fix overflow condition X-Git-Tag: initial-import-from-subversion-38251~12277 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e31ea3478707575739f5f69ffb8ee329597914f4;p=oweals%2Fgnunet.git - fix overflow condition --- 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;