strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4aad55
)
fixed interface disconnection
author
Martin Willi
<martin@strongswan.org>
Fri, 9 May 2008 10:38:18 +0000
(10:38 -0000)
committer
Martin Willi
<martin@strongswan.org>
Fri, 9 May 2008 10:38:18 +0000
(10:38 -0000)
src/dumm/bridge.c
patch
|
blob
|
history
diff --git
a/src/dumm/bridge.c
b/src/dumm/bridge.c
index
73659ea
..
cb8017c
100644
(file)
--- a/
src/dumm/bridge.c
+++ b/
src/dumm/bridge.c
@@
-59,7
+59,7
@@
static enumerator_t* create_iface_enumerator(private_bridge_t *this)
static bool disconnect_iface(private_bridge_t *this, iface_t *iface)
{
enumerator_t *enumerator;
- iface_t *current;
+ iface_t *current
= NULL
;
bool good = FALSE;
enumerator = this->ifaces->create_enumerator(this->ifaces);
@@
-75,6
+75,7
@@
static bool disconnect_iface(private_bridge_t *this, iface_t *iface)
else
{
iface->set_bridge(iface, NULL);
+ this->ifaces->remove_at(this->ifaces, enumerator);
good = TRUE;
}
break;