Commit 08caa551 authored by Dafydd Harries's avatar Dafydd Harries

catch case where received packed was smaller than buffer

darcs-hash:20070209170128-c9803-b28c040ab7493041094cf38dfb95abc03dbb6793.gz
parent a2a4b49e
...@@ -648,6 +648,7 @@ _nice_agent_recv ( ...@@ -648,6 +648,7 @@ _nice_agent_recv (
len = nice_udp_socket_recv (&(candidate->sock), &from, len = nice_udp_socket_recv (&(candidate->sock), &from,
buf_len, buf); buf_len, buf);
g_assert (len > 0); g_assert (len > 0);
g_assert (len < buf_len);
/* 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