summaryrefslogtreecommitdiff
path: root/security/hpn-ssh/files/patch-ssh-agent.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2003-10-02 20:55:58 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2003-10-02 20:55:58 +0000
commit1cf501d6f87b43d3b20cdc1df1942dccff3796bd (patch)
tree888348323662d1fceb365259a7bc1b95e8e8d3f1 /security/hpn-ssh/files/patch-ssh-agent.c
parent. s:NO_CDROM:RESTRICTED: as neither the distfiles nor the packages should (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_9_0'.release/4.9.0
Notes
Notes: svn path=/head/; revision=90063 svn path=/tags/RELEASE_4_9_0/; revision=90064; tag=release/4.9.0
Diffstat (limited to 'security/hpn-ssh/files/patch-ssh-agent.c')
-rw-r--r--security/hpn-ssh/files/patch-ssh-agent.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/security/hpn-ssh/files/patch-ssh-agent.c b/security/hpn-ssh/files/patch-ssh-agent.c
deleted file mode 100644
index f50ae308e03c..000000000000
--- a/security/hpn-ssh/files/patch-ssh-agent.c
+++ /dev/null
@@ -1,44 +0,0 @@
---- ssh-agent.c Sat Mar 15 00:37:09 2003
-+++ ssh-agent.c Wed Sep 17 00:42:15 2003
-@@ -767,7 +767,7 @@ process_message(SocketEntry *e)
- static void
- new_socket(sock_type type, int fd)
- {
-- u_int i, old_alloc;
-+ u_int i, old_alloc, new_alloc;
-
- if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
- error("fcntl O_NONBLOCK: %s", strerror(errno));
-@@ -778,25 +778,26 @@ new_socket(sock_type type, int fd)
- for (i = 0; i < sockets_alloc; i++)
- if (sockets[i].type == AUTH_UNUSED) {
- sockets[i].fd = fd;
-- sockets[i].type = type;
- buffer_init(&sockets[i].input);
- buffer_init(&sockets[i].output);
- buffer_init(&sockets[i].request);
-+ sockets[i].type = type;
- return;
- }
- old_alloc = sockets_alloc;
-- sockets_alloc += 10;
-+ new_alloc = sockets_alloc + 10;
- if (sockets)
-- sockets = xrealloc(sockets, sockets_alloc * sizeof(sockets[0]));
-+ sockets = xrealloc(sockets, new_alloc * sizeof(sockets[0]));
- else
-- sockets = xmalloc(sockets_alloc * sizeof(sockets[0]));
-- for (i = old_alloc; i < sockets_alloc; i++)
-+ sockets = xmalloc(new_alloc * sizeof(sockets[0]));
-+ for (i = old_alloc; i < new_alloc; i++)
- sockets[i].type = AUTH_UNUSED;
-- sockets[old_alloc].type = type;
-+ sockets_alloc = new_alloc;
- sockets[old_alloc].fd = fd;
- buffer_init(&sockets[old_alloc].input);
- buffer_init(&sockets[old_alloc].output);
- buffer_init(&sockets[old_alloc].request);
-+ sockets[old_alloc].type = type;
- }
-
- static int