From 8fc21c73f5ed361d3ae7e2818ab20d009c678b1b Mon Sep 17 00:00:00 2001 From: scantor Date: Tue, 10 Jul 2012 18:40:50 +0000 Subject: [PATCH] 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 --- shibsp/handler/impl/SAML2LogoutInitiator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.1.4