Commit d1ddf1e5 authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed a bug causing STUN retransmissions to fail.

darcs-hash:20070716095423-77cd4-6d7ffd81071c550862ec0819ca217cfe9f951840.gz
parent dbc0d58a
...@@ -217,6 +217,9 @@ stun_trans_send (stun_trans_t *tr) ...@@ -217,6 +217,9 @@ stun_trans_send (stun_trans_t *tr)
{ {
/* Message sent succesfully! */ /* Message sent succesfully! */
tr->msg.offset += val; tr->msg.offset += val;
assert (tr->msg.offset <= tr->msg.length);
if (tr->msg.offset == tr->msg.length)
tr->msg.offset = 0;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment