summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-19 11:00:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:31 -0500
commit6720bd94b8506d652ddc273bdbe02944e5911e23 (patch)
treecf2272eb44a38fe029566170347cb332df8cbb0d /source4/lib
parent7267cb3312f148be8cd00eb76b8e137cd4b2a314 (diff)
downloadsamba-6720bd94b8506d652ddc273bdbe02944e5911e23.tar.gz
samba-6720bd94b8506d652ddc273bdbe02944e5911e23.tar.bz2
samba-6720bd94b8506d652ddc273bdbe02944e5911e23.zip
r7750: handle STATUS_MORE_ENTRIES on send in tls
(This used to be commit 135c3367ff737246ea40030d3c852769666ff522)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/tls/tls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c
index 53b689f135..559a54a2f0 100644
--- a/source4/lib/tls/tls.c
+++ b/source4/lib/tls/tls.c
@@ -111,6 +111,10 @@ static ssize_t tls_push(gnutls_transport_ptr ptr, const void *buf, size_t size)
b.length = size;
status = socket_send(tls->socket, &b, &nwritten, 0);
+ if (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES)) {
+ errno = EAGAIN;
+ return -1;
+ }
if (!NT_STATUS_IS_OK(status)) {
EVENT_FD_WRITEABLE(tls->fde);
return -1;