]> git.meshlink.io Git - catta/commit
socket: ignore packet if FIONREAD returns zero
authorLudwig Nussel <ludwig.nussel@suse.de>
Wed, 19 May 2010 13:43:44 +0000 (15:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 25 Jun 2010 00:36:10 +0000 (02:36 +0200)
commit2b2844b10d7b7e5c97f9c667d664d9418bb7769a
tree57a7bdc077bcb09753e20c45e40785e0bc742655
parentbdec379e33d153413d7559f393ef7f9d35a1e3bb
socket: ignore packet if FIONREAD returns zero

zero size is reported for corrupt packets. recvmsg() later could
nevertheless get data from a good packet that followed the bad one.
So get out early to avoid hitting an assertion.
avahi-core/socket.c