summaryrefslogtreecommitdiff
path: root/source/smbd
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-01-14 22:01:21 +0000
committerLuke Leighton <lkcl@samba.org>2000-01-14 22:01:21 +0000
commit02e91c65efc83fdfe5ec18f7c5290c594e91fe42 (patch)
treeb8e167d6419f1f3f7ac6ad418270424648c4fca3 /source/smbd
parentf2a2632d5dd6909330f3503c2b45b20d439ea276 (diff)
downloadsamba-02e91c65efc83fdfe5ec18f7c5290c594e91fe42.tar.gz
[mixed commit. sorry!]
1) sorting out NETLOGON schannel (debug fest) 2) patches from Long.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/server.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c
index 41d49d5ea12..a9fcf2b3760 100644
--- a/source/smbd/server.c
+++ b/source/smbd/server.c
@@ -223,21 +223,23 @@ max can be %d\n",
if(FD_ISSET(fd_listenset[i * 2],&lfds)) {
s = fd_listenset[i * 2];
ClientPort = SMB_PORT;
+
+ /* Clear this so we don't look
+ at it again. */
+ FD_CLR(fd_listenset[i * 2], &lfds);
break;
}
-#if 0
if(FD_ISSET(fd_listenset[i * 2 + 1],&lfds)) {
s = fd_listenset[i * 2 + 1];
ClientPort = SMB_PORT2;
+
+ /* Clear this so we don't look
+ at it again. */
+ FD_CLR(fd_listenset[i * 2 + 1], &lfds);
break;
}
-#endif
}
- /* Clear this so we don't look
- at it again. */
- FD_CLR(s,&lfds);
-
Client = accept(s,&addr,&in_addrlen);
if (Client == -1 && errno == EINTR)