[prev in list] [next in list] [prev in thread] [next in thread]
List: openswan-users
Subject: Re: [Openswan Users] duplicate tunnels shown in ipsec eroute
From: Feng Dai <freedai () hotmail ! com>
Date: 2015-07-16 16:05:27
Message-ID: COL131-W85B18221981F143A5D70A1B7990 () phx ! gbl
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I found the bug and here's the patch.
Feng Dai
--- openswan-2.6.43/linux/net/ipsec/ipsec_proc.c 2015-03-13 13:49:09.000000000 -0500
+++ openswan-2.6.43-tw/linux/net/ipsec/ipsec_proc.c 2015-07-15 19:41:50.000000000 -0500
@@ -153,6 +153,7 @@ static void * proc_eroute_start(struct s
memset(rjws, 0, sizeof(struct rj_walkstate));
if(rj_initwalk(rjws, rnh, NULL, NULL)) {
+ spin_unlock_bh(&eroute_lock);
kfree(rjws);
return NULL;
}
--- openswan-2.6.43/linux/net/ipsec/ipsec_radij.c 2015-03-13 13:49:09.000000000 -0500
+++ openswan-2.6.43-tw/linux/net/ipsec/ipsec_radij.c 2015-07-15 19:17:42.000000000 -0500
@@ -135,6 +135,7 @@ ipsec_breakroute(struct sockaddr_encap *
"node not found, eroute delete failed.\n");
return error;
}
+ rnh_count--;
spin_unlock_bh(&eroute_lock);
[Attachment #5 (text/html)]
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I found the bug and here's the patch.
Feng Dai
--- openswan-2.6.43/linux/net/ipsec/ipsec_proc.c 2015-03-13 13:49:09.000000000 -0500
+++ openswan-2.6.43-tw/linux/net/ipsec/ipsec_proc.c 2015-07-15 19:41:50.000000000 -0500
@@ -153,6 +153,7 @@ static void * proc_eroute_start(struct s
memset(rjws, 0, sizeof(struct rj_walkstate));
if(rj_initwalk(rjws, rnh, NULL, NULL)) {
+ spin_unlock_bh(&eroute_lock);
kfree(rjws);
return NULL;
}
--- openswan-2.6.43/linux/net/ipsec/ipsec_radij.c 2015-03-13 13:49:09.000000000 -0500
+++ openswan-2.6.43-tw/linux/net/ipsec/ipsec_radij.c 2015-07-15 19:17:42.000000000 -0500
@@ -135,6 +135,7 @@ ipsec_breakroute(struct sockaddr_encap *
"node not found, eroute delete failed.\n");
return error;
}
+ rnh_count--;
spin_unlock_bh(&eroute_lock);
</div></body>
</html>
_______________________________________________
Users@lists.openswan.org
https://lists.openswan.org/mailman/listinfo/users
Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy
Building and Integrating Virtual Private Networks with Openswan:
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic