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:
0f33e82
)
prevent from initiating to %any
author
Martin Willi
<martin@strongswan.org>
Wed, 21 Mar 2007 07:00:04 +0000
(07:00 -0000)
committer
Martin Willi
<martin@strongswan.org>
Wed, 21 Mar 2007 07:00:04 +0000
(07:00 -0000)
src/charon/sa/ike_sa.c
patch
|
blob
|
history
diff --git
a/src/charon/sa/ike_sa.c
b/src/charon/sa/ike_sa.c
index
6f15ffc
..
70f6dec
100644
(file)
--- a/
src/charon/sa/ike_sa.c
+++ b/
src/charon/sa/ike_sa.c
@@
-770,6
+770,13
@@
static status_t initiate(private_ike_sa_t *this,
/* if we aren't established/establishing, do so */
apply_config(this, connection, policy);
/* if we aren't established/establishing, do so */
apply_config(this, connection, policy);
+ if (this->other_host->is_anyaddr(this->other_host))
+ {
+ SIG(IKE_UP_START, "initiating IKE_SA");
+ SIG(IKE_UP_FAILED, "unable to initiate to %%any");
+ return DESTROY_ME;
+ }
+
task = (task_t*)ike_init_create(&this->public, TRUE, NULL);
this->task_manager->queue_task(this->task_manager, task);
task = (task_t*)ike_natd_create(&this->public, TRUE);
task = (task_t*)ike_init_create(&this->public, TRUE, NULL);
this->task_manager->queue_task(this->task_manager, task);
task = (task_t*)ike_natd_create(&this->public, TRUE);