1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-19 04:23:48 +03:00

r3316: give the LDAP server a chance of operating correctly non-blocking (it

didn't handle EINTR or EAGAIN)
This commit is contained in:
Andrew Tridgell
2004-10-28 08:36:23 +00:00
committed by Gerald (Jerry) Carter
parent 7cb4bf8662
commit c35a8f92c2

View File

@@ -163,7 +163,7 @@ static BOOL read_into_buf(struct socket_context *sock, struct rw_buffer *buf)
}
status = socket_recv(sock, tmp_blob.data, tmp_blob.length, &nread, 0);
if (!NT_STATUS_IS_OK(status)) {
if (NT_STATUS_IS_ERR(status)) {
DEBUG(10,("socket_recv: %s\n",nt_errstr(status)));
talloc_free(tmp_blob.data);
return False;
@@ -207,7 +207,7 @@ static BOOL ldapsrv_read_buf(struct ldapsrv_connection *conn)
}
status = socket_recv(sock, tmp_blob.data, tmp_blob.length, &nread, 0);
if (!NT_STATUS_IS_OK(status)) {
if (NT_STATUS_IS_ERR(status)) {
DEBUG(10,("socket_recv: %s\n",nt_errstr(status)));
talloc_free(mem_ctx);
return False;