diff options
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/tls/tls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/lib/tls/tls.c b/source/lib/tls/tls.c index 53b689f1358..559a54a2f0e 100644 --- a/source/lib/tls/tls.c +++ b/source/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; |