Module Name: src Committed By: tteras Date: Sun Feb 20 17:32:02 UTC 2011
Modified Files: src/crypto/dist/ipsec-tools/src/racoon: oakley.c Log Message: >From Roman Hoog Antink <r...@open.ch>: Fix memory leak when using plain RSA key authentication. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/crypto/dist/ipsec-tools/src/racoon/oakley.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/dist/ipsec-tools/src/racoon/oakley.c diff -u src/crypto/dist/ipsec-tools/src/racoon/oakley.c:1.18 src/crypto/dist/ipsec-tools/src/racoon/oakley.c:1.19 --- src/crypto/dist/ipsec-tools/src/racoon/oakley.c:1.18 Thu Dec 16 16:59:05 2010 +++ src/crypto/dist/ipsec-tools/src/racoon/oakley.c Sun Feb 20 17:32:02 2011 @@ -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,