diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-07 22:10:15 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-07 22:10:15 +0000 |
commit | c51b924a80a17d6cf47c25c2c118385d4ecc87c8 (patch) | |
tree | 140f5252d5b8bc0aca22225c2323781d6af6e78d /key.c | |
parent | 8abe736dd7a27e4c2a42351287bacfd80ec42a7c (diff) | |
download | openssh-git-c51b924a80a17d6cf47c25c2c118385d4ecc87c8.tar.gz |
- deraadt@cvs.openbsd.org 2002/07/04 04:15:33
[key.c monitor_wrap.c sftp-glob.c ssh-dss.c ssh-rsa.c]
patch memory leaks; grendel@zeitbombe.org
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -32,7 +32,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: key.c,v 1.46 2002/06/30 21:59:45 deraadt Exp $"); +RCSID("$OpenBSD: key.c,v 1.47 2002/07/04 04:15:33 deraadt Exp $"); #include <openssl/evp.h> @@ -763,6 +763,8 @@ key_to_blob(Key *key, u_char **blobp, u_int *lenp) *lenp = len; if (blobp != NULL) *blobp = buf; + else + xfree(buf); return len; } |