svn commit: samba r3316 - in branches/SAMBA_4_0/source/ldap_server:
.
tridge at samba.org
tridge at samba.org
Thu Oct 28 08:36:23 GMT 2004
Author: tridge
Date: 2004-10-28 08:36:23 +0000 (Thu, 28 Oct 2004)
New Revision: 3316
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ldap_server&rev=3316&nolog=1
Log:
give the LDAP server a chance of operating correctly non-blocking (it
didn't handle EINTR or EAGAIN)
Modified:
branches/SAMBA_4_0/source/ldap_server/ldap_server.c
Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c
===================================================================
--- branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2004-10-28 08:15:12 UTC (rev 3315)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2004-10-28 08:36:23 UTC (rev 3316)
@@ -163,7 +163,7 @@
}
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 @@
}
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;
More information about the samba-cvs
mailing list