aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-21 13:44:37 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-21 13:44:37 +0000
commitaf94e7968b2f8137d5c59bcadc10960e1f1f0d22 (patch)
tree49095a7a9c8e6d0d09323d2b2e3f7bf331a1ff30
parentb9459040889b6f8617afddbaf1ce324dcda196b9 (diff)
downloadstrongswan-af94e7968b2f8137d5c59bcadc10960e1f1f0d22.tar.bz2
strongswan-af94e7968b2f8137d5c59bcadc10960e1f1f0d22.tar.xz
- switching of initiator flag only on requests
-rw-r--r--Source/charon/thread_pool.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/charon/thread_pool.c b/Source/charon/thread_pool.c
index f764e294f..38f0ae1fa 100644
--- a/Source/charon/thread_pool.c
+++ b/Source/charon/thread_pool.c
@@ -142,10 +142,12 @@ static void job_processing(private_thread_pool_t *this)
message->destroy(message);
break;
}
- /* we must switch the initiator flag here, because the sender
- * interprets this flag the other way round
+ /* we must switch the initiator flag when receiving a request
*/
- ike_sa_id->switch_initiator(ike_sa_id);
+ if (message->get_request(message))
+ {
+ ike_sa_id->switch_initiator(ike_sa_id);
+ }
this->worker_logger->log(this->worker_logger, CONTROL|MOST, "checking out IKE SA %lld:%lld, role %s",
ike_sa_id->get_initiator_spi(ike_sa_id),