From: Martin Willi Date: Wed, 20 Apr 2011 10:31:29 +0000 (+0200) Subject: Remove superfluous test for peer_cfg on established IKE_SAs X-Git-Tag: 4.5.2~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52846ec820a0e936372e15fbf34b830e4cd8ccdb;p=thirdparty%2Fstrongswan.git Remove superfluous test for peer_cfg on established IKE_SAs --- diff --git a/src/libcharon/sa/tasks/ike_config.c b/src/libcharon/sa/tasks/ike_config.c index c92b5bca5d..a61663c48c 100644 --- a/src/libcharon/sa/tasks/ike_config.c +++ b/src/libcharon/sa/tasks/ike_config.c @@ -317,7 +317,7 @@ static status_t build_r(private_ike_config_t *this, message_t *message) id = this->ike_sa->get_other_eap_id(this->ike_sa); config = this->ike_sa->get_peer_cfg(this->ike_sa); - if (config && this->virtual_ip) + if (this->virtual_ip) { DBG1(DBG_IKE, "peer requested virtual IP %H", this->virtual_ip); if (config->get_pool(config))