summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-07 22:10:15 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-07 22:10:15 +0000
commitc51b924a80a17d6cf47c25c2c118385d4ecc87c8 (patch)
tree140f5252d5b8bc0aca22225c2323781d6af6e78d /key.c
parent8abe736dd7a27e4c2a42351287bacfd80ec42a7c (diff)
- 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/key.c b/key.c
index 718cd16c..34b36b0e 100644
--- a/key.c
+++ b/key.c
@@ -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;
}