lib/tsocket: fix receiving of udp packets from 0 bytes (bug #9184)
commitc362ed52f22348e8621703e43e539a9f090b00bc
authorStefan Metzmacher <metze@samba.org>
Fri, 21 Sep 2012 20:54:26 +0000 (21 22:54 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 28 Sep 2012 07:23:08 +0000 (28 09:23 +0200)
tree559437b288b11f5dda5876c5348f1ca7dd8f1991
parent036c23a33a8420d4529094adb29f03f587c30dfc
lib/tsocket: fix receiving of udp packets from 0 bytes (bug #9184)

It's possible for a client to send 0 bytes in a UDP packet,
we need still need to call recvfrom() and skip the invalid
packet at a higher level. Otherwise the kernel receive queue
is blocked.

metze
lib/tsocket/tsocket_bsd.c