nsswitch: Fix short writes in winbind_write_sock
commit47bd5f0d7b677e9806770b3ba4dc162923c8f073
authorVolker Lendecke <vl@samba.org>
Tue, 15 Oct 2013 08:23:10 +0000 (15 08:23 +0000)
committerKarolin Seeger <kseeger@samba.org>
Thu, 28 Nov 2013 09:13:42 +0000 (28 10:13 +0100)
treea2d3b56ee2529bc35b518893bc2a78297318a728
parent81ce51dd4f3d657ab3b4f6295db6efe6c9315d88
nsswitch: Fix short writes in winbind_write_sock

We set the socket to nonblocking and don't handle EAGAIN right. We do
a poll anyway, so wait for writability, which should fix this.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10195
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit c6909887c26d4e827633acd50b11cf08c6aee0f7)
Signed-off-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 3dfbea723553b268008063b280c808bb30951fdc)
nsswitch/wb_common.c