summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2004-06-15 10:35:30 +1000
committerDamien Miller <djm@mindrot.org>2004-06-15 10:35:30 +1000
commit232711f6dbc107711b3957bfa2fd798aec702241 (patch)
tree2dfcd276712caa022fd8aa2f3c1319c13660fdd7 /ssh-agent.c
parent0e220dbfbcc9fe252e8f1f4890dbfa415aad35db (diff)
- djm@cvs.openbsd.org 2004/06/14 01:44:39
[channels.c clientloop.c misc.c misc.h packet.c ssh-agent.c ssh-keyscan.c] [sshd.c] set_nonblock() instead of fnctl(...,O_NONBLOCK); "looks sane" deraadt@
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index a38322160..ea84f2196 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -35,7 +35,7 @@
35 35
36#include "includes.h" 36#include "includes.h"
37#include "openbsd-compat/sys-queue.h" 37#include "openbsd-compat/sys-queue.h"
38RCSID("$OpenBSD: ssh-agent.c,v 1.118 2004/05/08 00:21:31 djm Exp $"); 38RCSID("$OpenBSD: ssh-agent.c,v 1.119 2004/06/14 01:44:39 djm Exp $");
39 39
40#include <openssl/evp.h> 40#include <openssl/evp.h>
41#include <openssl/md5.h> 41#include <openssl/md5.h>
@@ -789,8 +789,7 @@ new_socket(sock_type type, int fd)
789{ 789{
790 u_int i, old_alloc, new_alloc; 790 u_int i, old_alloc, new_alloc;
791 791
792 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) 792 set_nonblock(fd);
793 error("fcntl O_NONBLOCK: %s", strerror(errno));
794 793
795 if (fd > max_fd) 794 if (fd > max_fd)
796 max_fd = fd; 795 max_fd = fd;