Properly catch errors in recvfrom
authorJens Georg <mail@jensge.org>
Tue, 7 Sep 2010 20:20:42 +0000 (22:20 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 14 Sep 2010 13:35:59 +0000 (16:35 +0300)
commit8e512d438dbb0dbc83c32e74e8ff71086cc50e66
tree796bf27811ee57f9478022f69ef2ca52e3ea0501
parent2af9f29b509d9d07d21a7d70d28c8bba3720e854
Properly catch errors in recvfrom

Errors previously were caught by sheer luck due to the fact that bytes
was declared size_t (unsigned), thus -1 mapping to typeof(size_t)_MAX
which most likely fullfilled the case of bytes > BUF_SIZE
libgssdp/gssdp-client.c