diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-09-22 21:01:27 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-09-22 21:01:27 +1000 |
commit | d1d41b318117258bd25f2eb2789ba3b91408bd16 (patch) | |
tree | 7cc38ef62e2417aadb71d4717dda4230c52b3866 | |
parent | d2730d39a1005502b406983de84b85f6b50237de (diff) |
- markus@cvs.openbsd.org 2003/09/18 07:56:05
[authfile.c]
missing buffer_free(&encrypted); #662; zardoz at users.sf.net
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | authfile.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -36,6 +36,9 @@ - markus@cvs.openbsd.org 2003/09/18 07:54:48 [buffer.c] protect against double free; #660; zardoz at users.sf.net + - markus@cvs.openbsd.org 2003/09/18 07:56:05 + [authfile.c] + missing buffer_free(&encrypted); #662; zardoz at users.sf.net 20030919 - (djm) Bug #683: Remove reference to --with-ipv4-default from INSTALL; @@ -1172,4 +1175,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3025 2003/09/22 11:00:19 dtucker Exp $ +$Id: ChangeLog,v 1.3026 2003/09/22 11:01:27 dtucker Exp $ @@ -36,7 +36,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: authfile.c,v 1.54 2003/05/24 09:30:39 djm Exp $"); +RCSID("$OpenBSD: authfile.c,v 1.55 2003/09/18 07:56:05 markus Exp $"); #include <openssl/err.h> #include <openssl/evp.h> @@ -143,6 +143,7 @@ key_save_private_rsa1(Key *key, const char *filename, const char *passphrase, fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fd < 0) { error("open %s failed: %s.", filename, strerror(errno)); + buffer_free(&encrypted); return 0; } if (write(fd, buffer_ptr(&encrypted), buffer_len(&encrypted)) != |