Commit 437acab0 authored by Dafydd Harries's avatar Dafydd Harries

don't assert when packet larger than buffer arrives

darcs-hash:20070313141745-c9803-5ae5a7b2f36201678cab6351e2c13e7c32285740.gz
parent 471a8357
...@@ -822,7 +822,12 @@ _nice_agent_recv ( ...@@ -822,7 +822,12 @@ _nice_agent_recv (
if (len == 0) if (len == 0)
return 0; return 0;
g_assert (len < buf_len); if (len > buf_len)
{
/* buffer is not big enough to accept this packet */
/* XXX: test this case */
return 0;
}
/* XXX: verify sender; maybe: /* XXX: verify sender; maybe:
* *
......
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