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 fix by Sergio.Gelato (at)...
details: https://anonhg.NetBSD.org/src/rev/93c3231e3521
branches: trunk
changeset: 757353:93c3231e3521
user: vanhu <vanhu%NetBSD.org@localhost>
date: Thu Aug 26 13:31:55 2010 +0000
description:
fix by Sergio.Gelato (at) astro.su.se: duplicate some dynamic values in duprmconf()
diffstat:
crypto/dist/ipsec-tools/src/racoon/remoteconf.c | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r cccd3df57e64 -r 93c3231e3521 crypto/dist/ipsec-tools/src/racoon/remoteconf.c
--- a/crypto/dist/ipsec-tools/src/racoon/remoteconf.c Thu Aug 26 13:29:01 2010 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/remoteconf.c Thu Aug 26 13:31:55 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: remoteconf.c,v 1.19 2010/06/22 09:41:33 vanhu Exp $ */
+/* $NetBSD: remoteconf.c,v 1.20 2010/08/26 13:31:55 vanhu Exp $ */
/* Id: remoteconf.c,v 1.38 2006/05/06 15:52:44 manubsd Exp */
@@ -555,6 +555,24 @@
new->idvl_p = genlist_init();
genlist_foreach(rmconf->idvl_p, dupidvl, new->idvl_p);
+ /* duplicate strings */
+ if (new->mycertfile != NULL) {
+ new->mycertfile = racoon_strdup(new->mycertfile);
+ STRDUP_FATAL(new->mycertfile);
+ }
+ if (new->myprivfile != NULL) {
+ new->myprivfile = racoon_strdup(new->myprivfile);
+ STRDUP_FATAL(new->myprivfile);
+ }
+ if (new->peerscertfile != NULL) {
+ new->peerscertfile = racoon_strdup(new->peerscertfile);
+ STRDUP_FATAL(new->peerscertfile);
+ }
+ if (new->cacertfile != NULL) {
+ new->cacertfile = racoon_strdup(new->cacertfile);
+ STRDUP_FATAL(new->cacertfile);
+ }
+
return new;
}
Home |
Main Index |
Thread Index |
Old Index