Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon From Roman Hoog Antink <r...



details:   https://anonhg.NetBSD.org/src/rev/f1aed93c796f
branches:  trunk
changeset: 762415:f1aed93c796f
user:      tteras <tteras%NetBSD.org@localhost>
date:      Sun Feb 20 17:32:02 2011 +0000

description:
>From Roman Hoog Antink <rha%open.ch@localhost>: Fix memory leak when using plain RSA
key authentication.

diffstat:

 crypto/dist/ipsec-tools/src/racoon/oakley.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 2fa82f7699cd -r f1aed93c796f crypto/dist/ipsec-tools/src/racoon/oakley.c
--- a/crypto/dist/ipsec-tools/src/racoon/oakley.c       Sun Feb 20 17:29:28 2011 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/oakley.c       Sun Feb 20 17:32:02 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: oakley.c,v 1.18 2010/12/16 16:59:05 gdt Exp $  */
+/*     $NetBSD: oakley.c,v 1.19 2011/02/20 17:32:02 tteras Exp $       */
 
 /* Id: oakley.c,v 1.32 2006/05/26 12:19:46 manubsd Exp */
 
@@ -1524,6 +1524,8 @@
                        iph1->rsa_p = rsa_try_check_rsasign(my_hash,
                                        iph1->sig_p, iph1->rsa_candidates);
                        error = iph1->rsa_p ? 0 : -1;
+                       genlist_free(iph1->rsa_candidates, NULL);
+                       iph1->rsa_candidates = NULL;
                        break;
                default:
                        plog(LLV_ERROR, LOCATION, NULL,



Home | Main Index | Thread Index | Old Index