diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | authfile.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -36,6 +36,9 @@ | |||
36 | - markus@cvs.openbsd.org 2003/09/18 07:54:48 | 36 | - markus@cvs.openbsd.org 2003/09/18 07:54:48 |
37 | [buffer.c] | 37 | [buffer.c] |
38 | protect against double free; #660; zardoz at users.sf.net | 38 | protect against double free; #660; zardoz at users.sf.net |
39 | - markus@cvs.openbsd.org 2003/09/18 07:56:05 | ||
40 | [authfile.c] | ||
41 | missing buffer_free(&encrypted); #662; zardoz at users.sf.net | ||
39 | 42 | ||
40 | 20030919 | 43 | 20030919 |
41 | - (djm) Bug #683: Remove reference to --with-ipv4-default from INSTALL; | 44 | - (djm) Bug #683: Remove reference to --with-ipv4-default from INSTALL; |
@@ -1172,4 +1175,4 @@ | |||
1172 | - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. | 1175 | - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. |
1173 | Report from murple@murple.net, diagnosis from dtucker@zip.com.au | 1176 | Report from murple@murple.net, diagnosis from dtucker@zip.com.au |
1174 | 1177 | ||
1175 | $Id: ChangeLog,v 1.3025 2003/09/22 11:00:19 dtucker Exp $ | 1178 | $Id: ChangeLog,v 1.3026 2003/09/22 11:01:27 dtucker Exp $ |
diff --git a/authfile.c b/authfile.c index 1f46093e3..83ddd635f 100644 --- a/authfile.c +++ b/authfile.c | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "includes.h" | 38 | #include "includes.h" |
39 | RCSID("$OpenBSD: authfile.c,v 1.54 2003/05/24 09:30:39 djm Exp $"); | 39 | RCSID("$OpenBSD: authfile.c,v 1.55 2003/09/18 07:56:05 markus Exp $"); |
40 | 40 | ||
41 | #include <openssl/err.h> | 41 | #include <openssl/err.h> |
42 | #include <openssl/evp.h> | 42 | #include <openssl/evp.h> |
@@ -143,6 +143,7 @@ key_save_private_rsa1(Key *key, const char *filename, const char *passphrase, | |||
143 | fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0600); | 143 | fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0600); |
144 | if (fd < 0) { | 144 | if (fd < 0) { |
145 | error("open %s failed: %s.", filename, strerror(errno)); | 145 | error("open %s failed: %s.", filename, strerror(errno)); |
146 | buffer_free(&encrypted); | ||
146 | return 0; | 147 | return 0; |
147 | } | 148 | } |
148 | if (write(fd, buffer_ptr(&encrypted), buffer_len(&encrypted)) != | 149 | if (write(fd, buffer_ptr(&encrypted), buffer_len(&encrypted)) != |