lib/tsocket: fix loop in tdgram_bsd_recvfrom() (bug #9184)
authorStefan Metzmacher <metze@samba.org>
Tue, 2 Oct 2012 10:20:26 +0000 (12:20 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Oct 2012 10:24:11 +0000 (12:24 +0200)
commit730d4e5e7c66f4f296e7e4c2919ce9ce53370792
tree1cf640af8194f7ea66d27167cd8be415af8401fa
parent633afe7edf9f72ac7a76f3e15ba9d8faa43c2cca
lib/tsocket: fix loop in tdgram_bsd_recvfrom() (bug #9184)

If the socket is not readable yet, we need to retry
if tsocket_bsd_pending() returns 0.

See also
https://lists.samba.org/archive/samba-technical/2012-October/087164.html

metze
lib/tsocket/tsocket_bsd.c