From: scantor Date: Tue, 10 Jul 2012 18:40:50 +0000 (+0000) Subject: Send async flag only on front-channel X-Git-Tag: 2.5.0~29 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=8fc21c73f5ed361d3ae7e2818ab20d009c678b1b Send async flag only on front-channel git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3729 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/shibsp/handler/impl/SAML2LogoutInitiator.cpp b/shibsp/handler/impl/SAML2LogoutInitiator.cpp index a97e1e8..05d1e88 100644 --- a/shibsp/handler/impl/SAML2LogoutInitiator.cpp +++ b/shibsp/handler/impl/SAML2LogoutInitiator.cpp @@ -530,7 +530,7 @@ auto_ptr SAML2LogoutInitiator::buildRequest( msg->setID(SAMLConfig::getConfig().generateIdentifier()); msg->setIssueInstant(time(nullptr)); - if (m_async) { + if (m_async && encoder) { msg->setExtensions(saml2p::ExtensionsBuilder::buildExtensions()); msg->getExtensions()->getUnknownXMLObjects().push_back(AsynchronousBuilder::buildAsynchronous()); }