[openssh-commits] [openssh] 04/05: upstream commit
    git+noreply at mindrot.org 
    git+noreply at mindrot.org
       
    Thu Aug 20 13:08:49 AEST 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit ec6eda16ebab771aa3dfc90629b41953b999cb1e
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Wed Aug 19 23:19:01 2015 +0000
    upstream commit
    
    fix double-free() in error path of DSA key generation
     reported by Mateusz Kocielski; ok markus@
    
    Upstream-ID: 4735d8f888b10599a935fa1b374787089116713c
---
 sshkey.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sshkey.c b/sshkey.c
index dbb16e2..32dd8f2 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshkey.c,v 1.20 2015/07/03 03:43:18 djm Exp $ */
+/* $OpenBSD: sshkey.c,v 1.21 2015/08/19 23:19:01 djm Exp $ */
 /*
  * Copyright (c) 2000, 2001 Markus Friedl.  All rights reserved.
  * Copyright (c) 2008 Alexander von Gernler.  All rights reserved.
@@ -1556,7 +1556,6 @@ dsa_generate_private_key(u_int bits, DSA **dsap)
 	*dsap = NULL;
 	if (!DSA_generate_parameters_ex(private, bits, NULL, 0, NULL,
 	    NULL, NULL) || !DSA_generate_key(private)) {
-		DSA_free(private);
 		ret = SSH_ERR_LIBCRYPTO_ERROR;
 		goto out;
 	}
-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
    
    
More information about the openssh-commits
mailing list