lib/tsocket: fix receiving of udp packets from 0 bytes (bug #9184)
authorStefan Metzmacher <metze@samba.org>
Fri, 21 Sep 2012 20:54:26 +0000 (22:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 22 Sep 2012 02:31:06 +0000 (04:31 +0200)
commiteacdd9f730c09bc59e3906e4f2eff6b8b3051169
treee3a28c4214a1d64d4e4528e901d159d764016eb4
parentcc93a3004e1f7a38e7519ecd124a1ce6a21ffe1c
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