Commit 70acf53c authored by Dafydd Harries's avatar Dafydd Harries

ignore 0-length UDP packets

darcs-hash:20070214165519-c9803-b523f9eb98a701fb20ac8bc33b336bb5ac9f0e9c.gz
parent da51ef41
......@@ -779,7 +779,10 @@ _nice_agent_recv (
len = nice_udp_socket_recv (&(candidate->sock), &from,
buf_len, buf);
g_assert (len > 0);
if (len == 0)
return 0;
g_assert (len < buf_len);
/* 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