mirror of git://anongit.mindrot.org/openssh.git
- Merge fix from OpenBSD CVS
[ssh-agent.c] - Fix memory leak per connection. Report from Andy Spiegl <Andy@Spiegl.de> via Debian bug #59926
This commit is contained in:
parent
f3a3fee942
commit
a552faf564
|
@ -1,3 +1,9 @@
|
||||||
|
20000421
|
||||||
|
- Merge fix from OpenBSD CVS
|
||||||
|
[ssh-agent.c]
|
||||||
|
- Fix memory leak per connection. Report from Andy Spiegl <Andy@Spiegl.de>
|
||||||
|
via Debian bug #59926
|
||||||
|
|
||||||
20000420
|
20000420
|
||||||
- Make fixpaths work with perl4, patch from Andre Lucas
|
- Make fixpaths work with perl4, patch from Andre Lucas
|
||||||
<andre.lucas@dial.pipex.com>
|
<andre.lucas@dial.pipex.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: ssh-agent.c,v 1.29 2000/04/19 07:05:49 deraadt Exp $ */
|
/* $OpenBSD: ssh-agent.c,v 1.30 2000/04/21 00:27:11 djm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: ssh-agent.c,v 1.29 2000/04/19 07:05:49 deraadt Exp $");
|
RCSID("$OpenBSD: ssh-agent.c,v 1.30 2000/04/21 00:27:11 djm Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "rsa.h"
|
#include "rsa.h"
|
||||||
|
@ -440,6 +440,8 @@ after_select(fd_set *readset, fd_set *writeset)
|
||||||
shutdown(sockets[i].fd, SHUT_RDWR);
|
shutdown(sockets[i].fd, SHUT_RDWR);
|
||||||
close(sockets[i].fd);
|
close(sockets[i].fd);
|
||||||
sockets[i].type = AUTH_UNUSED;
|
sockets[i].type = AUTH_UNUSED;
|
||||||
|
buffer_free(&sockets[i].input);
|
||||||
|
buffer_free(&sockets[i].output);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
buffer_consume(&sockets[i].output, len);
|
buffer_consume(&sockets[i].output, len);
|
||||||
|
@ -450,6 +452,8 @@ after_select(fd_set *readset, fd_set *writeset)
|
||||||
shutdown(sockets[i].fd, SHUT_RDWR);
|
shutdown(sockets[i].fd, SHUT_RDWR);
|
||||||
close(sockets[i].fd);
|
close(sockets[i].fd);
|
||||||
sockets[i].type = AUTH_UNUSED;
|
sockets[i].type = AUTH_UNUSED;
|
||||||
|
buffer_free(&sockets[i].input);
|
||||||
|
buffer_free(&sockets[i].output);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
buffer_append(&sockets[i].input, buf, len);
|
buffer_append(&sockets[i].input, buf, len);
|
||||||
|
|
Loading…
Reference in New Issue