git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7267cb3
)
r7750: handle STATUS_MORE_ENTRIES on send in tls
author
Andrew Tridgell
<tridge@samba.org>
Sun, 19 Jun 2005 11:00:13 +0000
(11:00 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:18:31 +0000
(13:18 -0500)
(This used to be commit
135c3367ff737246ea40030d3c852769666ff522
)
source4/lib/tls/tls.c
patch
|
blob
|
history
diff --git
a/source4/lib/tls/tls.c
b/source4/lib/tls/tls.c
index 53b689f1358acfbc9cf7ee9e00596ccade07e4f9..559a54a2f0e2115fc25c8c778f2d0a92c5cf1bb7 100644
(file)
--- 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;