diff options
author | Tobias Brunner <tobias@strongswan.org> | 2009-09-04 11:10:52 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2009-09-04 15:13:12 +0200 |
commit | f4b975a65df9b2f2878f4be1df8821b84fa4b808 (patch) | |
tree | d87a18ab9976fe2c2186c11a2e998eabcf3d5ed4 | |
parent | 7b3814f75da7e760347742fe5af05bdb3a1b1f1c (diff) | |
download | strongswan-f4b975a65df9b2f2878f4be1df8821b84fa4b808.tar.bz2 strongswan-f4b975a65df9b2f2878f4be1df8821b84fa4b808.tar.xz |
Moved set_state after the DBG0 statement, so that the message gets logged also for mediation connections without CHILD_SA.
-rw-r--r-- | src/charon/sa/tasks/ike_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/sa/tasks/ike_auth.c b/src/charon/sa/tasks/ike_auth.c index 9f8fc89a2..2c15ac765 100644 --- a/src/charon/sa/tasks/ike_auth.c +++ b/src/charon/sa/tasks/ike_auth.c @@ -730,7 +730,6 @@ static status_t build_r(private_ike_auth_t *this, message_t *message) chunk_empty); return FAILED; } - this->ike_sa->set_state(this->ike_sa, IKE_ESTABLISHED); DBG0(DBG_IKE, "IKE_SA %s[%d] established between %H[%Y]...%H[%Y]", this->ike_sa->get_name(this->ike_sa), this->ike_sa->get_unique_id(this->ike_sa), @@ -738,6 +737,7 @@ static status_t build_r(private_ike_auth_t *this, message_t *message) this->ike_sa->get_my_id(this->ike_sa), this->ike_sa->get_other_host(this->ike_sa), this->ike_sa->get_other_id(this->ike_sa)); + this->ike_sa->set_state(this->ike_sa, IKE_ESTABLISHED); charon->bus->ike_updown(charon->bus, this->ike_sa, TRUE); return SUCCESS; } @@ -909,7 +909,6 @@ static status_t process_i(private_ike_auth_t *this, message_t *message) DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, cancelling"); return FAILED; } - this->ike_sa->set_state(this->ike_sa, IKE_ESTABLISHED); DBG0(DBG_IKE, "IKE_SA %s[%d] established between %H[%Y]...%H[%Y]", this->ike_sa->get_name(this->ike_sa), this->ike_sa->get_unique_id(this->ike_sa), @@ -917,6 +916,7 @@ static status_t process_i(private_ike_auth_t *this, message_t *message) this->ike_sa->get_my_id(this->ike_sa), this->ike_sa->get_other_host(this->ike_sa), this->ike_sa->get_other_id(this->ike_sa)); + this->ike_sa->set_state(this->ike_sa, IKE_ESTABLISHED); charon->bus->ike_updown(charon->bus, this->ike_sa, TRUE); return SUCCESS; } |