- 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
*/
#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>
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.
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);