summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-12-08 10:22:21 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-12-08 11:26:08 -0500
commit49f0f8f7e65ff816775387b5a33b27565beaf3f5 (patch)
tree65bc91c15a85fcdf8ee9411152aa6b70971dcb3c
parent20a5868eb8b3d30a86b0603b56b49e1f70736868 (diff)
pseudotcp: Do roll-over safe assertion
In case of a roll-over, only the difference matters.
-rw-r--r--agent/pseudotcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/pseudotcp.c b/agent/pseudotcp.c
index ec38f42..eb91e3c 100644
--- a/agent/pseudotcp.c
+++ b/agent/pseudotcp.c
@@ -1961,7 +1961,7 @@ transmit(PseudoTcpSocket *self, SSegment *segment, guint32 now)
PseudoTcpWriteResult wres;
/* The packet must not have already been acknowledged. */
- g_assert_cmpuint (segment->seq, >=, priv->snd_una);
+ g_assert_cmpuint (segment->seq - priv->snd_una, <=, 1024 * 1024 * 64);
/* Write out the packet. */
wres = packet(self, seq, flags,