diff options
author | Damien Miller <djm@mindrot.org> | 2012-02-11 08:19:02 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2012-02-11 08:19:02 +1100 |
commit | 5d0077008f6b9ff00dac01e2265cbfe67d4fe1d0 (patch) | |
tree | 1dd70385dee0b983a14203d3dc622843561d29bb /authfile.c | |
parent | 1de2cfe9a9304b00900aaa6ff9fe612e2ba51ba8 (diff) | |
download | openssh-git-5d0077008f6b9ff00dac01e2265cbfe67d4fe1d0.tar.gz |
- markus@cvs.openbsd.org 2012/01/25 19:36:31
[authfile.c]
memleak in key_load_file(); from Jan Klemkow
Diffstat (limited to 'authfile.c')
-rw-r--r-- | authfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: authfile.c,v 1.92 2011/06/14 22:49:18 markus Exp $ */ +/* $OpenBSD: authfile.c,v 1.93 2012/01/25 19:36:31 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -340,7 +340,7 @@ key_load_file(int fd, const char *filename, Buffer *blob) filename == NULL ? "" : " "); return 0; } - buffer_init(blob); + buffer_clear(blob); for (;;) { if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) { if (errno == EPIPE) |