fixed disabling the sending of cert requests
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 13 Apr 2008 17:31:07 +0000 (17:31 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 13 Apr 2008 17:31:07 +0000 (17:31 -0000)
src/charon/sa/tasks/ike_cert_pre.c

index 643a842..34a5792 100644 (file)
@@ -209,7 +209,7 @@ static void build_certreqs(private_ike_cert_pre_t *this, message_t *message)
        certreq_payload_t *x509_req = NULL;
        
        ike_cfg = this->ike_sa->get_ike_cfg(this->ike_sa);
-       if (ike_cfg->send_certreq(ike_cfg) == CERT_NEVER_SEND)
+       if (!ike_cfg->send_certreq(ike_cfg))
        {
                return;
        }