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:
e8960c2
)
Do not install trap policy if remote host is %any.
author
Tobias Brunner
<tobias@strongswan.org>
Fri, 28 May 2010 13:43:12 +0000
(15:43 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Fri, 28 May 2010 13:43:12 +0000
(15:43 +0200)
src/libcharon/sa/trap_manager.c
patch
|
blob
|
history
diff --git
a/src/libcharon/sa/trap_manager.c
b/src/libcharon/sa/trap_manager.c
index
878170c
..
80bf647
100644
(file)
--- a/
src/libcharon/sa/trap_manager.c
+++ b/
src/libcharon/sa/trap_manager.c
@@
-128,7
+128,7
@@
static u_int32_t install(private_trap_manager_t *this, peer_cfg_t *peer,
ike_cfg = peer->get_ike_cfg(peer);
other = host_create_from_dns(ike_cfg->get_other_addr(ike_cfg),
0, ike_cfg->get_other_port(ike_cfg));
- if (!other)
+ if (!other
|| other->is_anyaddr(other)
)
{
DBG1(DBG_CFG, "installing trap failed, remote address unknown");
return 0;