]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2003/09/26 08:19:29
authordtucker <dtucker>
Thu, 2 Oct 2003 06:18:22 +0000 (06:18 +0000)
committerdtucker <dtucker>
Thu, 2 Oct 2003 06:18:22 +0000 (06:18 +0000)
     [sshd.c]
     no need to set the listen sockets to non-block; ok deraadt@

ChangeLog
sshd.c

index e61b6dc0df4cad29d6fe20bdc0f5178a6631f6a4..27377f3ef62fd89b025bafd53e419489a5c362f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,9 @@
    - markus@cvs.openbsd.org 2003/09/23 20:41:11
      [channels.c channels.h clientloop.c]
      move client only agent code to clientloop.c
+   - markus@cvs.openbsd.org 2003/09/26 08:19:29
+     [sshd.c]
+     no need to set the listen sockets to non-block; ok deraadt@
 
 20030930
  - (bal) Fix issues in openbsd-compat/realpath.c
diff --git a/sshd.c b/sshd.c
index 5c2711295087801edd7f732d1b942cf15f281c0e..36f34ff5809080a5fee092f01de7851f7b34f57c 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.278 2003/09/23 20:17:11 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.279 2003/09/26 08:19:29 markus Exp $");
 
 #include <openssl/dh.h>
 #include <openssl/bn.h>
@@ -1136,11 +1136,6 @@ main(int ac, char **av)
                                verbose("socket: %.100s", strerror(errno));
                                continue;
                        }
-                       if (fcntl(listen_sock, F_SETFL, O_NONBLOCK) < 0) {
-                               error("listen_sock O_NONBLOCK: %s", strerror(errno));
-                               close(listen_sock);
-                               continue;
-                       }
                        /*
                         * Set socket options.
                         * Allow local port reuse in TIME_WAIT.
@@ -1280,11 +1275,6 @@ main(int ac, char **av)
                                                error("accept: %.100s", strerror(errno));
                                        continue;
                                }
-                               if (fcntl(newsock, F_SETFL, 0) < 0) {
-                                       error("newsock del O_NONBLOCK: %s", strerror(errno));
-                                       close(newsock);
-                                       continue;
-                               }
                                if (drop_connection(startups) == 1) {
                                        debug("drop connection #%d", startups);
                                        close(newsock);
This page took 0.051841 seconds and 5 git commands to generate.