fixed keyingtries
authorMartin Willi <martin@strongswan.org>
Mon, 23 Apr 2007 12:19:23 +0000 (12:19 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 23 Apr 2007 12:19:23 +0000 (12:19 -0000)
src/charon/sa/task_manager.c

index eb707c1..e67508e 100644 (file)
@@ -267,6 +267,7 @@ static status_t build_request(private_task_manager_t *this)
                        case IKE_CREATED:
                                if (activate_task(this, IKE_INIT))
                                {
                        case IKE_CREATED:
                                if (activate_task(this, IKE_INIT))
                                {
+                                       this->initiating.mid = 0;
                                        exchange = IKE_SA_INIT;
                                        activate_task(this, IKE_NATD);
                                        activate_task(this, IKE_CERT);
                                        exchange = IKE_SA_INIT;
                                        activate_task(this, IKE_NATD);
                                        activate_task(this, IKE_CERT);