diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-03-26 07:07:24 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-03-26 07:07:24 +0000 |
commit | a8f6863aa612ce6941e7bad9cf809a8d0608a7ca (patch) | |
tree | 561c850bc04e7b62c9fc641be89ac412589219c1 /crypto/openssh/ssh-agent.c | |
parent | 511b41d2a18c00a5f0db1a67a87ef8d831b19f2a (diff) | |
download | src-test2-a8f6863aa612ce6941e7bad9cf809a8d0608a7ca.tar.gz src-test2-a8f6863aa612ce6941e7bad9cf809a8d0608a7ca.zip |
Notes
Diffstat (limited to 'crypto/openssh/ssh-agent.c')
-rw-r--r-- | crypto/openssh/ssh-agent.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/openssh/ssh-agent.c b/crypto/openssh/ssh-agent.c index 6646956ea7f1..393fdf017456 100644 --- a/crypto/openssh/ssh-agent.c +++ b/crypto/openssh/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.25 2000/01/02 21:51:03 markus Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.26 2000/03/16 20:56:14 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -9,7 +9,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-agent.c,v 1.25 2000/01/02 21:51:03 markus Exp $"); +RCSID("$OpenBSD: ssh-agent.c,v 1.26 2000/03/16 20:56:14 markus Exp $"); #include "ssh.h" #include "rsa.h" @@ -408,6 +408,7 @@ after_select(fd_set *readset, fd_set *writeset) { unsigned int i; int len, sock; + socklen_t slen; char buf[1024]; struct sockaddr_un sunaddr; @@ -417,8 +418,8 @@ after_select(fd_set *readset, fd_set *writeset) break; case AUTH_SOCKET: if (FD_ISSET(sockets[i].fd, readset)) { - len = sizeof(sunaddr); - sock = accept(sockets[i].fd, (struct sockaddr *) & sunaddr, &len); + slen = sizeof(sunaddr); + sock = accept(sockets[i].fd, (struct sockaddr *) & sunaddr, &slen); if (sock < 0) { perror("accept from AUTH_SOCKET"); break; |