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 fixed some memory leaks i...
details: https://anonhg.NetBSD.org/src/rev/54fd2dcbe594
branches: trunk
changeset: 762834:54fd2dcbe594
user: vanhu <vanhu%NetBSD.org@localhost>
date: Wed Mar 02 14:52:32 2011 +0000
description:
fixed some memory leaks in remoteconf. patch by Roman Hoog Antink <rha%open.ch@localhost>
diffstat:
crypto/dist/ipsec-tools/src/racoon/remoteconf.c | 4 +++-
crypto/dist/ipsec-tools/src/racoon/session.c | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r f1d920356a19 -r 54fd2dcbe594 crypto/dist/ipsec-tools/src/racoon/remoteconf.c
--- a/crypto/dist/ipsec-tools/src/racoon/remoteconf.c Wed Mar 02 14:49:21 2011 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/remoteconf.c Wed Mar 02 14:52:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: remoteconf.c,v 1.22 2011/01/28 13:00:14 tteras Exp $ */
+/* $NetBSD: remoteconf.c,v 1.23 2011/03/02 14:52:32 vanhu Exp $ */
/* Id: remoteconf.c,v 1.38 2006/05/06 15:52:44 manubsd Exp */
@@ -652,6 +652,8 @@
racoon_free(rmconf->cacertfile);
if (rmconf->name)
racoon_free(rmconf->name);
+ if (rmconf->remote)
+ racoon_free(rmconf->remote);
racoon_free(rmconf);
}
diff -r f1d920356a19 -r 54fd2dcbe594 crypto/dist/ipsec-tools/src/racoon/session.c
--- a/crypto/dist/ipsec-tools/src/racoon/session.c Wed Mar 02 14:49:21 2011 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/session.c Wed Mar 02 14:52:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: session.c,v 1.30 2011/01/28 13:02:34 tteras Exp $ */
+/* $NetBSD: session.c,v 1.31 2011/03/02 14:52:32 vanhu Exp $ */
/* $KAME: session.c,v 1.32 2003/09/24 02:01:17 jinmei Exp $ */
@@ -343,6 +343,7 @@
pfkey_send_flush(lcconf->sock_pfkey, SADB_SATYPE_UNSPEC);
flushph2();
flushph1();
+ flushrmconf();
close_sockets();
backupsa_clean();
Home |
Main Index |
Thread Index |
Old Index