diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2019-10-16 06:03:31 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2019-10-16 06:03:31 +0000 |
commit | 8495ac253455c8d54808cfbbc62375ae12a8fbb6 (patch) | |
tree | be0b58013b0b1ae8bbe544d897229996e63caf57 | |
parent | 7fdce529691695723d1ad1cc1fa9825706720209 (diff) |
free buf before return; reported by krishnaiah bommu
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 033ccb36b53..b877253958a 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.355 2019/10/03 17:07:50 jmc Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.356 2019/10/16 06:03:30 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -636,6 +636,7 @@ do_convert_from_ssh2(struct passwd *pw, struct sshkey **k, int *private) *k = do_convert_private_ssh2(buf); else if ((r = sshkey_fromb(buf, k)) != 0) fatal("decode blob failed: %s", ssh_err(r)); + sshbuf_free(buf); fclose(fp); } |