]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
main-mode: Local identity is always defined
authorTobias Brunner <tobias@strongswan.org>
Thu, 23 Aug 2018 15:31:50 +0000 (17:31 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 31 Aug 2018 09:02:43 +0000 (11:02 +0200)
src/libcharon/sa/ikev1/tasks/main_mode.c

index a41b35b1a6765959a256eb320ed0b5cfa59200e1..b60c84992eadd45e77f0af1ea969ff7fae9f374f 100644 (file)
@@ -332,12 +332,6 @@ METHOD(task_t, build_i, status_t,
                        identification_t *id;
 
                        id = this->ph1->get_id(this->ph1, this->peer_cfg, TRUE);
-                       if (!id)
-                       {
-                               DBG1(DBG_CFG, "own identity not known");
-                               charon->bus->alert(charon->bus, ALERT_LOCAL_AUTH_FAILED);
-                               return send_notify(this, INVALID_ID_INFORMATION);
-                       }
                        this->ike_sa->set_my_id(this->ike_sa, id->clone(id));
                        id_payload = id_payload_create_from_identification(PLV1_ID, id);
                        message->add_payload(message, &id_payload->payload_interface);
@@ -528,12 +522,6 @@ METHOD(task_t, build_r, status_t,
                        xauth_t *xauth = NULL;
 
                        id = this->ph1->get_id(this->ph1, this->peer_cfg, TRUE);
-                       if (!id)
-                       {
-                               DBG1(DBG_CFG, "own identity not known");
-                               charon->bus->alert(charon->bus, ALERT_LOCAL_AUTH_FAILED);
-                               return send_notify(this, INVALID_ID_INFORMATION);
-                       }
                        this->ike_sa->set_my_id(this->ike_sa, id->clone(id));
 
                        id_payload = id_payload_create_from_identification(PLV1_ID, id);