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)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2012 12:44:21 +0000 (14:44 +0200)
commitd2aa785290a283e06624f22a381a7ea02baae5ad
tree311b93ecf2b63179b2b512e5f78c83072d697190
parent7138b2138ba1f67386c6aa1e1c5ef49fde07cc41
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

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Oct 23 14:44:21 CEST 2012 on sn-devel-104
lib/tsocket/tsocket_bsd.c